-
Notifications
You must be signed in to change notification settings - Fork 934
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
feat: allow disabling selected item events #1297
base: master
Are you sure you want to change the base?
Conversation
Hi! We don't support |
08aa103
to
2309155
Compare
@silviuaavram Hi. I am not sure if I understood correctly what u meant by creating a Feature Request, by I have updated PR description with the template, added TS definition and updated docs. It seems that flow-types doesn't need any update, but I might be wrong. |
2309155
to
b277633
Compare
b277633
to
74d1f2c
Compare
@silviuaavram Hi, feature is ready to ship. |
Hey i wanted to ask what the status of this pull request is, as i would be also interested in the possibility to disable some of my elements from a list for selection. |
Well yes, all good so far, thank you! But if the item is disabled, it should be skipped during navigation. This PR needs more work and tests. |
What:
New feature, which supports
disabled
prop forgetSelectedItemProps
method.Why:
When using
useMultipleSelection()
hook there is no support for disablingBackspace
andDelete
keys events and prevent from editing data.How:
If
disabled
prop is passed togetSelectedItemProps
, thenonClick
andonKeyDown
handlers are not returned.Checklist: