mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-08 08:36:34 +02:00
Merge pull request #176 from adamsro/bugfix/maintain-container-focus-on-escape
Refocus outer container when dropdown is closed via escape key
This commit is contained in:
commit
38761ca4ae
|
@ -1477,6 +1477,7 @@ class Choices {
|
|||
const onEscapeKey = () => {
|
||||
if (hasActiveDropdown) {
|
||||
this.toggleDropdown();
|
||||
this.containerOuter.focus();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue