You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the optionsItemBuilder function and add new tags, click event does not fire on new elements. It happens because return false; in this part of the code
_this.$li.on({
// Prevent <input> blur on Chrome
mousedown: function (e) {
e.preventDefault();
e.stopPropagation();
},
click: function () {
_this.select($(this).data('index'));
// Chrome doesn't close options box if select is wrapped with a label
// We need to 'return false' to avoid that
return false;
}
});
The text was updated successfully, but these errors were encountered:
When using the
optionsItemBuilder
function and add new tags, click event does not fire on new elements. It happens becausereturn false;
in this part of the codeThe text was updated successfully, but these errors were encountered: