diff --git a/src/tagify.js b/src/tagify.js index cce4ea05..beee3790 100644 --- a/src/tagify.js +++ b/src/tagify.js @@ -634,6 +634,9 @@ Tagify.prototype = { } if( tagElm && veryfyTagTextProp() ){ + if(!tagElm.parentNode) + return; + tagElm = this.replaceTag(tagElm, tagData) this.editTagToggleValidity(tagElm, tagData)