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

Non-clearable Selects can be cleared (with backspace) #112

Closed
dylanscott opened this issue Feb 20, 2018 · 1 comment
Closed

Non-clearable Selects can be cleared (with backspace) #112

dylanscott opened this issue Feb 20, 2018 · 1 comment

Comments

@dylanscott
Copy link

I'm not sure if this is intentional, but it was certainly very unexpected for me. Selects with clearable={false} can be cleared by hitting backspace while the input is focused. This can easily be reproduced on the demo page by unchecking clearable on the first example.

@TrevorBurnham
Copy link
Contributor

Yes, clearable only means that the "x" icon is shown. You can control the backspace behavior with the backspaceRemoves prop.

This API is from react-select, so we don't intend to change it.

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