Skip to content

Commit

Permalink
fixes #1309 - focusing on the edge of Tagify should not create a tag.…
Browse files Browse the repository at this point in the history
… This is becuase the event was coming form the Tagify wrapper itself and the `text` variable was not specific enough when getting the input's text
  • Loading branch information
yairEO committed Mar 19, 2024
1 parent 6a02856 commit 00a96ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parts/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default {
}

var _s = this.settings,
text = e.target ? this.trim(e.target.textContent) : '', // a string
text = e.target ? this.trim(this.DOM.input.textContent) : '', // a string
currentDisplayValue = this.value?.[0]?.[_s.tagTextProp],
type = e.type,
ddEnabled = _s.dropdown.enabled >= 0,
Expand Down

0 comments on commit 00a96ba

Please sign in to comment.