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 support for `disabled` item selection #365

Closed
mlalitthapa opened this Issue Aug 19, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@mlalitthapa

mlalitthapa commented Aug 19, 2017

Can we have a default option where we can decide if an item can be selected or not? If there is a disabled item then it cannot be selected and while pressing up and down arrow keys it will skip the disabled item.

@running-coder

This comment has been minimized.

Owner

running-coder commented Aug 21, 2017

hey @mlalitthapa good idea, shouldn't be hard to implement 👍

@mlalitthapa

This comment has been minimized.

mlalitthapa commented Aug 21, 2017

@running-coder so far I am just able to send the empty value to the input box if the disabled item is clicked with updater option.

Can you give some idea on how to achive this?

@running-coder running-coder changed the title from Disable the item selection to Add support for `disabled` item selection Aug 23, 2017

running-coder added a commit that referenced this issue Aug 23, 2017

@running-coder

This comment has been minimized.

Owner

running-coder commented Aug 23, 2017

I've added support for disabled items. You can either set a disabled: true property on your item data or use the matcher option to set the item key disabled to true.

https://jsfiddle.net/runningcoder/hzr7uLse/

@running-coder running-coder added this to the 2.10.0 milestone Aug 23, 2017

@mlalitthapa

This comment has been minimized.

mlalitthapa commented Aug 23, 2017

Great. Really appreciate it @running-coder

running-coder added a commit that referenced this issue Sep 7, 2017

Version 2.10.0
Features
- #138 Add `multiselect` option
- #365 Add support for `disabled` items

Fixes
- #353 `group.template` as a string
- #367 isContentEditable always true on IE11

running-coder added a commit that referenced this issue Sep 7, 2017

Version 2.10.0
Features
- #138 Add `multiselect` option
- #365 Add support for `disabled` items

Fixes
- #353 `group.template` as a string
- #367 isContentEditable always true on IE11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment