Skip to content

Commit

Permalink
fix(dropdown): setting value of dropdown did not remove search
Browse files Browse the repository at this point in the history
If you have a dropdown with a search term and forceSelection:false and a given search value not matching any dropdown entry, setting the value of the dropdown with "set selected"/"set exactly" afterwards, did not remove the search term making the selected value overlay the search term.
  • Loading branch information
lubber-de authored and Sean committed Sep 5, 2019
1 parent d9e7f2d commit 093b901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,6 @@ $.fn.dropdown = function(parameters) {
else {
if(settings.allowAdditions) {
module.set.selected(module.get.query());
module.remove.searchTerm();
}
else {
module.remove.searchTerm();
Expand Down Expand Up @@ -2708,7 +2707,8 @@ $.fn.dropdown = function(parameters) {
}
})
;
},
module.remove.searchTerm();
}
},

add: {
Expand Down

0 comments on commit 093b901

Please sign in to comment.