Commit 28c5db81 authored by David Stutz's avatar David Stutz

Merge pull request #132 from TimSchlechter/onChange_fix_in_select_and_deselect

Fixed invoking onChange in select/deselect
parents 26e4348e 65ce9b7d
......@@ -448,7 +448,7 @@
$option.attr('selected', 'selected').prop('selected', true);
this.updateButtonText();
this.options.onChange($option, checked);
this.options.onChange($option, true);
},
// Deselect an option by its value.
......@@ -469,6 +469,7 @@
$option.removeAttr('selected').prop('selected', false);
this.updateButtonText();
this.options.onChange($option, false);
},
// Rebuild the whole dropdown menu.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment