Commit 33724e1a authored by Chris Hynes's avatar Chris Hynes

Fire select change event

parent c77d7ee2
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
var $optionsNotThis = this.$container.find("input").not($(event.target)); var $optionsNotThis = this.$container.find("input").not($(event.target));
if (!this.options.multiple) { if (!this.options.multiple) {
$optionsNotThis.prop("checked", false).change(); $optionsNotThis.prop("checked", false);
// It's a single selection, so close. // It's a single selection, so close.
$(this.$container).find(".multiselect.dropdown-toggle").click(); $(this.$container).find(".multiselect.dropdown-toggle").click();
...@@ -222,6 +222,8 @@ ...@@ -222,6 +222,8 @@
$('button', this.$container).html(this.options.buttonText(options, this.$select)); $('button', this.$container).html(this.options.buttonText(options, this.$select));
this.options.onChange(option, checked); this.options.onChange(option, checked);
this.$select.change();
}, this)); }, this));
$('ul li a', this.$container).on('click', function(event) { $('ul li a', this.$container).on('click', function(event) {
......
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