Browse Source

Fix issue where selection dropdown would modify search selection on tab before query

pull/5373/head
Jack 7 years ago
parent
commit
238ac3c890
1 changed files with 3 additions and 1 deletions
  1. 4
      src/definitions/modules/dropdown.js

4
src/definitions/modules/dropdown.js

@ -677,7 +677,9 @@ $.fn.dropdown = function(parameters) {
if(module.is.multiple()) { if(module.is.multiple()) {
module.filterActive(); module.filterActive();
} }
module.select.firstUnfiltered();
if(query || (!query && module.get.activeItem().length == 0)) {
module.select.firstUnfiltered();
}
if( module.has.allResultsFiltered() ) { if( module.has.allResultsFiltered() ) {
if( settings.onNoResults.call(element, searchTerm) ) { if( settings.onNoResults.call(element, searchTerm) ) {
if(settings.allowAdditions) { if(settings.allowAdditions) {

Loading…
Cancel
Save