-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Dropdown: add closeOnEscape
prop
#3622
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
closeOnBlur={false}
and ESC
key not workingcloseOnBlur={false}
and ESC
key not working as expected
We have |
closeOnBlur={false}
and ESC
key not working as expectedcloseOnEscape
prop
Ah, yes, we should have that for Dropdown too. BTW, Is there any workaround for this until this prop added to Dropdown? Any suggestions? /cc @layershifter |
* feat(Dropdown): add 'closeOnEscape' prop (#3622) Signed-off-by: mhatvan <[email protected]> * Update Dropdown-test.js
* feat(Dropdown): add 'closeOnEscape' prop (Semantic-Org#3622) Signed-off-by: mhatvan <[email protected]> * Update Dropdown-test.js
Bug Report
Steps
closeOnBlur={false}
to dropdownESC
.Expected Result
Clicking outside and pressing
ESC
should not close the dropdown. I want my dropdown stay open. The reason is, I put some elements in dropdown and it has its own keybindings.ESC
is one of them and when I pressESC
on that element, dropdown closes completely.Actual Result
Click works.
ESC
closes dropdown no matter of what.Version
0.87.1
Testcase
See "Close on blur stays open" example in SemanticUI-React website.
Related
See here: #1995
The text was updated successfully, but these errors were encountered: