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