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

[Feature request] Add disabled-prop, just like value-prop and label #202

Closed
lllopo opened this issue Feb 15, 2022 · 4 comments
Closed

[Feature request] Add disabled-prop, just like value-prop and label #202

lllopo opened this issue Feb 15, 2022 · 4 comments

Comments

@lllopo
Copy link

lllopo commented Feb 15, 2022

I have the following case : the objects in the list that is fed to the component contain a property named 'disabled' and this results in that the options in the multiselect become disabled. The thing is, that I want them to be actually enabled and just rendered differently. A workaround is to loop the objects array and change the property name, but this unnecessary overhead could be easily avoided by adding something like "disabled-prop", which works the same way as "value-prop" and "label" properties. In addition - it would be useful in the opposite cases where a list of objects comes with property that means "disabled", but is named differently.

@antonioferngarcia
Copy link

Same issue, disabled prop is not working and the only way to force multiselect as disable is adding "disabled: true" to every option

@stale
Copy link

stale bot commented May 7, 2022

Hi 👋 this issue has been automatically marked as stale 📌 because it has not had recent activity 😴. It will be closed if no further activity occurs.

@stale stale bot added the stale label May 7, 2022
@lllopo
Copy link
Author

lllopo commented May 7, 2022

Well, stale because no one takes care to at least give some response to this. Sweet.

@stale stale bot removed the stale label May 7, 2022
adamberecz added a commit that referenced this issue May 30, 2022
@adamberecz
Copy link
Collaborator

Added disabledProp in 2.4.0.

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

No branches or pull requests

3 participants