Skip to content

Commit

Permalink
fixes #733 - Unable to insert tag containing "<x>" with tab key
Browse files Browse the repository at this point in the history
  • Loading branch information
yairEO committed Feb 13, 2021
1 parent a6a5b5e commit 4da23a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/tagify.min.js
Expand Up @@ -2173,7 +2173,7 @@
var updateDOM = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
var hideDropdown = this.settings.dropdown.closeOnSelect;
this.state.inputText = s;
if (updateDOM) this.DOM.input.innerHTML = s;
if (updateDOM) this.DOM.input.innerHTML = escapeHTML(s);
if (!s && hideDropdown) this.dropdown.hide.bind(this);
this.input.autocomplete.suggest.call(this);
this.input.validate.call(this);
Expand Down
2 changes: 1 addition & 1 deletion src/tagify.js
Expand Up @@ -583,7 +583,7 @@ Tagify.prototype = {
this.state.inputText = s

if( updateDOM )
this.DOM.input.innerHTML = s;
this.DOM.input.innerHTML = escapeHTML(s);

if( !s && hideDropdown )
this.dropdown.hide.bind(this)
Expand Down

0 comments on commit 4da23a8

Please sign in to comment.