Skip to content

Commit

Permalink
fix(dropdown): onChange is fired on menu openeing when reselection=true
Browse files Browse the repository at this point in the history
onChange event is fired when the menu of dropdown is opened when allowReselection=true and with remote content

This problem is only when dropdown use remote content and is not multiple.
  • Loading branch information
dutrieux committed Nov 20, 2021
1 parent 3eb748b commit b51d0d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definitions/modules/dropdown.js
Expand Up @@ -848,7 +848,7 @@ $.fn.dropdown = function(parameters) {
var value = module.is.multiple() ? module.get.values() : module.get.value();
if (value !== '') {
module.verbose('Value(s) present after click icon, select value(s) in items');
module.set.selected(value, null, null, true);
module.set.selected(value, null, true, true);
}
}
iconClicked = false;
Expand Down

0 comments on commit b51d0d1

Please sign in to comment.