twill icon indicating copy to clipboard operation
twill copied to clipboard

Disabled options in select form field

Open monawithoutra opened this issue 3 years ago • 1 comments

Summary

Hi,

as far as I can see (please correct me if I'm wrong), there is no way to disable options in the select form field (like they are displayed but cannot be selected) with Twill v2.5.2.

Describe the solution you'd like

Twill's select component VSelect uses vue select. Vue Select v3.3+ has the prop selectable that determines if an option is selectable or not. Please update vue select to the given version or provide another solution to disable options in the select form field.

Thank you!

monawithoutra avatar Nov 24 '21 10:11 monawithoutra

Hi @hb-monah thanks for reporting this.

The work of updating to v3 has been started here: https://github.com/area17/twill/pull/674. I believe it will be picked up as part of the Twill 3.x effort.

~~If you want to explore this a bit more on your end, you can have a look at VSelect.vue, which is Twill's wrapper component for vue-select.~~ Sorry, you were clearly familiar with this component :)

pboivin avatar Nov 29 '21 21:11 pboivin