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

Add an option to disable certain select options #366

Closed
rabih9780 opened this issue Jan 21, 2021 · 4 comments
Closed

Add an option to disable certain select options #366

rabih9780 opened this issue Jan 21, 2021 · 4 comments
Labels
feature request New feature or request
Milestone

Comments

@rabih9780
Copy link

Describe the new feature you'd like

I Looked through the documentation but couldn't find a way to disable certain select options.

One way to implement this is by adding "disabled" tag in the object
{ value: 'initial', label: 'Middle Initial', id: 'name-initial', disabled: true }

@rabih9780 rabih9780 added the feature request New feature or request label Jan 21, 2021
@Esgaroth77
Copy link

I'd like that feature. I have various fields in my forms that only need to be filled (and therefore visible) if certain inputs have been made before (i.e. I don't need a VAT-number if it's a private customer).

@XGhozt
Copy link

XGhozt commented Feb 4, 2021

+1

@justin-schroeder
Copy link
Member

Seems pretty doable. FWIW, this already works like this for box type inputs. I'll tag for future release.

@justin-schroeder
Copy link
Member

This is now added in the release/2.5.1 branch 👍. Also, technically you could do this already using the attributes property which is v-bind on each option. However, 2.5.1 will add a disabled: Boolean property to the option list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants