Replies: 2 comments
-
Greetings @Nokel81 , I believe I understand what you are trying to achieve, though I believe passing a Instead, I believe it would be easier to use a Demo: codesandbox Admittedly, this solution would be even cleaner without the need for a custom Input component if Please let me know if this satisfies both your use-case and request for passing the native event. |
Beta Was this translation helpful? Give feedback.
-
Yes this satisfies my use-case, though as you said having |
Beta Was this translation helpful? Give feedback.
-
Description
Pass the
MouseEvent
orKeyboardEvent
as the third parameter ofonChange
Use Case
I would like to implement a form of a multi-select component that acts as
isMulti={false}
normally but acts likeisMulti={true}
when the"SHIFT"
key is held during a click.Interface
This seems like a rather niche feature so allowing the user to do this instead of a new prop seems the best course of action.
Version
I am currently using v3 but from the docs this doesn't look like it would be possible in v4 either.
Beta Was this translation helpful? Give feedback.
All reactions