Replies: 2 comments 3 replies
-
Hello @murphpdx, something like this is possible using the const ref = React.useRef<SelectInstance | null>(null);
<Select
ref={ref}
isMulti
onKeyDown={(e) => {
if (!['Delete', 'Backspace'].includes(e.key)) return;
if (ref.current!.props.inputValue || ref.current!.state.focusedValue) return;
ref.current!.focusValue('previous');
e.preventDefault();
}}
/>; |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We would like to make it harder to remove an item from a multi-select to make sure that the user intended to delete the option. If the option is not focused, the user will have to click backspace twice.
Beta Was this translation helpful? Give feedback.
All reactions