mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-19 14:06:33 +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 = () => {
|
const onEscapeKey = () => {
|
||||||
if (hasActiveDropdown) {
|
if (hasActiveDropdown) {
|
||||||
this.toggleDropdown();
|
this.toggleDropdown();
|
||||||
|
this.containerOuter.focus();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue