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 for options is not possible #2

Closed
SilberMa opened this issue Dec 21, 2020 · 2 comments
Closed

Disabled for options is not possible #2

SilberMa opened this issue Dec 21, 2020 · 2 comments

Comments

@SilberMa
Copy link

SilberMa commented Dec 21, 2020

Hi,

need to disable a few options of a filteredList and still need them to be listed in the dropdown (like crossed out).

I tried with:

[ { "value": "1", "label": "de-AT", "disabled": false }, { "value": "2", "label": "de-CH", "disabled": false }, { "value": "3, "label": "en-GB", "disabled": false }, { "value": "4", "label": "en-CA", "disabled": false }, { "value": "5", "label": "de-DE", "disabled": true }, { "value": "6", "label": "en-US", "disabled": false } ]

as options, but this doesn't really do anything.

Is there a possibility to achieve this or is your multiselect designed to display only choosable options?

@adamberecz
Copy link
Collaborator

This will be available in the next minor release. Hopefully in a couple of days.

@adamberecz
Copy link
Collaborator

Now this should work in latest release 1.2.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

2 participants