Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled options in select form field #1266

Closed
monawithoutra opened this issue Nov 24, 2021 · 1 comment · Fixed by #1619
Closed

Disabled options in select form field #1266

monawithoutra opened this issue Nov 24, 2021 · 1 comment · Fixed by #1619
Labels
type: enhancement New feature or request

Comments

@monawithoutra
Copy link

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 monawithoutra changed the title DIsabled options in select Disabled options in select Nov 24, 2021
@monawithoutra monawithoutra changed the title Disabled options in select Disabled options in select form field Nov 24, 2021
@pboivin
Copy link
Contributor

pboivin commented Nov 29, 2021

Hi @hb-monah thanks for reporting this.

The work of updating to v3 has been started here: #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 pboivin linked a pull request Nov 29, 2021 that will close this issue
@ifox ifox added the type: enhancement New feature or request label Feb 6, 2022
@ifox ifox closed this as completed Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants