Skip to content

Commit

Permalink
Fix tab => direction keys handling with disabled search
Browse files Browse the repository at this point in the history
  • Loading branch information
zoglo committed Feb 2, 2025
1 parent 1b9c86f commit 527cbaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion js/choices.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! choices.js v11.0.3 | © 2024 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
/*! choices.js v11.0.3 | © 2025 Josh Johnson | https://github.com/jshjohnson/Choices#readme */

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
Expand Down Expand Up @@ -4897,6 +4897,10 @@
else if (target === this.containerOuter.element) {
// Remove the focus state when the past outerContainer was the target
containerOuter.removeFocusState();
// Also close the dropdown if search is disabled
if (!this._canSearch) {
this.hideDropdown(true);
}
}
}
else {
Expand Down
4 changes: 2 additions & 2 deletions js/choices.min.js

Large diffs are not rendered by default.

0 comments on commit 527cbaf

Please sign in to comment.