diff --git a/scripts/multiselect.core.js b/scripts/multiselect.core.js index 7d4b258..137d02f 100644 --- a/scripts/multiselect.core.js +++ b/scripts/multiselect.core.js @@ -314,7 +314,7 @@ Multiselect.prototype = { }, _performSelectItem : function(checkbox, self) { - var item = JSON.parse(checkbox.dataset.multiselectElement); + this._item.dispatchEvent(new Event("change")); if (checkbox.checked) { self._itemCounter++; m_helper.select(this._item.options[item.index]); @@ -428,6 +428,8 @@ Multiselect.prototype = { ddArrow.style.marginLeft = '-57px'; } } + + this._item.dispatchEvent(new Event("change")); }, //internal representation of combo box items