Skip to content

Commit

Permalink
Stop search on esc being pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
Xon committed Dec 21, 2024
1 parent 7e772c0 commit bfd2e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/choices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ class Choices {
if (hasActiveDropdown) {
event.stopPropagation();
this.hideDropdown(true);
this.refresh(false, false, true);
this._stopSearch();
this.containerOuter.element.focus();
}
}
Expand Down

0 comments on commit bfd2e83

Please sign in to comment.