Click event does not fire on nested elements inside li tags
Opened this issue · 0 comments
Deleted user commented
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;
}
});