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

Backspace on input is deleting selected options #130

Open
vitornovo54 opened this issue Sep 27, 2019 · 2 comments
Open

Backspace on input is deleting selected options #130

vitornovo54 opened this issue Sep 27, 2019 · 2 comments

Comments

@vitornovo54
Copy link

When the select input is open and empty hitting backspace will delete all selected options.
Is there a method to overwrite this behaviour?

@tonila
Copy link

tonila commented Dec 9, 2019

I also had this problem using BasicSelect. Hitting backspace triggers @select with empty object.

I had to use following workaround with all select events:

onSelect(selected) {
    if (!selected.value) return
    ....
}

@vitornovo54
Copy link
Author

yes, eventually I had to removed it from the component and do a rebuild.
But this looks like a nice workaround.
Thanks ;)

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