Skip to content

Commit

Permalink
fix(dropdown): keep searchterm in menu search
Browse files Browse the repository at this point in the history
  • Loading branch information
lubber-de committed Feb 9, 2024
1 parent e4ff553 commit 3d96748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@
if (!itemActivated && !pageLostFocus) {
if (settings.forceSelection) {
module.forceSelection();
} else if (!settings.allowAdditions) {
} else if (!settings.allowAdditions && !settings.keepSearchTerm && !module.has.menuSearch()) {
module.remove.searchTerm();
}
module.hide();
Expand Down

0 comments on commit 3d96748

Please sign in to comment.