Skip to content

Commit

Permalink
Merge pull request #1240 from zoglo/fix/escape-key-options
Browse files Browse the repository at this point in the history
Fix search was not stopped when leaving focus with `esc` key
  • Loading branch information
Xon authored Dec 21, 2024
2 parents d659b75 + bfd2e83 commit 1876714
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripts/choices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1772,6 +1772,7 @@ class Choices {
if (hasActiveDropdown) {
event.stopPropagation();
this.hideDropdown(true);
this._stopSearch();
this.containerOuter.element.focus();
}
}
Expand Down

0 comments on commit 1876714

Please sign in to comment.