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:
Josh Johnson 2017-06-03 12:36:24 +01:00 committed by GitHub
commit 38761ca4ae

View file

@ -1477,6 +1477,7 @@ class Choices {
const onEscapeKey = () => {
if (hasActiveDropdown) {
this.toggleDropdown();
this.containerOuter.focus();
}
};