Skip to content

Commit

Permalink
Fix issue where selection dropdown would modify search selection on t…
Browse files Browse the repository at this point in the history
…ab before query
  • Loading branch information
jlukic committed May 10, 2017
1 parent 2060fd5 commit 238ac3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,9 @@ $.fn.dropdown = function(parameters) {
if(module.is.multiple()) {
module.filterActive();
}
module.select.firstUnfiltered();
if(query || (!query && module.get.activeItem().length == 0)) {
module.select.firstUnfiltered();
}
if( module.has.allResultsFiltered() ) {
if( settings.onNoResults.call(element, searchTerm) ) {
if(settings.allowAdditions) {
Expand Down

0 comments on commit 238ac3c

Please sign in to comment.