mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-30 04:23:15 +02:00
Refocus outer container when dropdown is closed via escape key
This commit is contained in:
parent
3b203d892b
commit
c3166d6e60
|
@ -1469,6 +1469,7 @@ class Choices {
|
||||||
const onEscapeKey = () => {
|
const onEscapeKey = () => {
|
||||||
if (hasActiveDropdown) {
|
if (hasActiveDropdown) {
|
||||||
this.toggleDropdown();
|
this.toggleDropdown();
|
||||||
|
this.containerOuter.focus();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue