tagmanager
tagmanager copied to clipboard
Tag's with external ids can't be removed
The problem is here:
$el.find("#" + newTagRemoveId).on("click", $self, function (e) {
e.preventDefault();
var TagIdToRemove = parseInt($(this).attr("TagIdToRemove"));
privateMethods.spliceTag.call($self, TagIdToRemove, e.data);
});
The id of the tag to remove is not numeric, so using parseInt in line 3 always results in TagIdToRemove to be NaN.