tagmanager icon indicating copy to clipboard operation
tagmanager copied to clipboard

Tag's with external ids can't be removed

Open ErikDakoda opened this issue 9 years ago • 0 comments

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.

ErikDakoda avatar Jun 28 '15 18:06 ErikDakoda