
I even tried something like this, but it didn't work either:.I'd have to modify the template, but I didn't want to go that far yet. But there doesn't seem to be a single option for that. I was going to try disabling editing of tags (as a temporary workaround).I've tried blacklisting "" (empty string), but that doesn't help either.ex: pattern: /^+$/ (Not 100% sure this regex would do it though).I've even tried getting pattern to reject an empty tags, but I can't.But it still doesn't remove this now-empty/invalid tag.In that it nicely "cleans ups" the invalid tags. I've tried the pattern option and keepInvalidTags: false together and it works well for rejecting non pattern matches.Because it's not removed, its (and ) remains and is included in the results when tagify.value is called.Only clicking the "x" or delete key (when the cursor is to the right of it) will remove it. contenteditable="false" is set, so you can't add text again.Edit the tag (double click on it) by removing all of the characters.The tag remains in an empty state, uneditable, and with its value set to what it was before the edit began.Edit a tag (via double click) down to nothing.*Someone might think that one of the ways to remove a tag (once in editing mode) would be to just delete all of the text.

The use-case* of someone editing a tag down to nothing should then remove the tag (since it's empty).But I found (what seems to be) a really simple case/bug related to empty tags.Īnd since it seems to be "really simple", it probably isn't, and I wouldn't be surprised if I'm doing something wrong.
