Browse Source

Fixes dropdown force selection to not filter until after hide

pull/2300/head
jlukic 9 years ago
parent
commit
7887dae2ea
1 changed files with 2 additions and 3 deletions
  1. 5
      src/definitions/modules/dropdown.js

5
src/definitions/modules/dropdown.js

@ -553,7 +553,7 @@ $.fn.dropdown = function(parameters) {
if(module.has.maxSelections()) { if(module.has.maxSelections()) {
return; return;
} }
if(false) {
if(true) {
// async // async
module.queryRemote(searchTerm, function() { module.queryRemote(searchTerm, function() {
afterFiltered(); afterFiltered();
@ -720,7 +720,6 @@ $.fn.dropdown = function(parameters) {
if(hasSelected) { if(hasSelected) {
module.debug('Forcing partial selection to selected item', $selectedItem); module.debug('Forcing partial selection to selected item', $selectedItem);
module.event.item.click.call($selectedItem); module.event.item.click.call($selectedItem);
module.remove.filteredItem();
} }
else { else {
module.hide(); module.hide();
@ -1565,7 +1564,7 @@ $.fn.dropdown = function(parameters) {
return true; return true;
} }
else { else {
module.verbose('No longer maximum selection count, removing message');
module.verbose('No longer at maximum selection count');
module.remove.message(); module.remove.message();
module.remove.filteredItem(); module.remove.filteredItem();
if(module.is.searchSelection()) { if(module.is.searchSelection()) {

Loading…
Cancel
Save