Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Backspace button actual deleting the selected options. #36

Closed
jpc0rrea opened this issue Apr 18, 2021 · 2 comments
Closed

Backspace button actual deleting the selected options. #36

jpc0rrea opened this issue Apr 18, 2021 · 2 comments
Labels
enhancement New feature or request hacktoberfest

Comments

@jpc0rrea
Copy link

When the user selects an option, and then deletes what he typed, if he continues to press the backspace key, the selected items begin to be deselected. I think a good new feature would be to cancel this behavior, and when the user continue to type backspace nothing really happens. Like if the only way to deselect a option is by pressing the "X" button on the created option tag.

@tenondra
Copy link

Hi, I have the same issue. Sadly there is no way to catch the backspace event too to prevent this right now.

@koolamusic koolamusic added the enhancement New feature or request label Sep 16, 2021
@koolamusic
Copy link
Owner

This is an accessibility enhancement, The backspace is supposed to delete selections by design, unless you would be proposing a prop that will disable this default behaviour, of only allowing users to delete their inputs, however most users design their tags to be present in the input box, and in this case, the backspace simulates the behaviour of deleting the selected items even though they aren't primitive input values.

So we need to think about this in a manner that is both accessible and controlled.

Repository owner locked and limited conversation to collaborators Jun 17, 2022
@koolamusic koolamusic converted this issue into discussion #98 Jun 17, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

No branches or pull requests

3 participants