Skip to content

Commit

Permalink
moved last commented change this.state.hasFocus to a better locatio…
Browse files Browse the repository at this point in the history
…n in the code
  • Loading branch information
yairEO committed Jan 27, 2024
1 parent c6abe27 commit 2fa118c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tagify.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ Tagify.prototype = {

toggleFocusClass( force ){
this.toggleClass(this.settings.classNames.focus, !!force)
this.state.hasFocus = !!force
},

triggerChangeEvent,
Expand Down Expand Up @@ -534,6 +533,7 @@ Tagify.prototype = {
this.setRangeAtStartEnd(false, editableElm) // place the caret at the END of the editable tag text

_s.dropdown.enabled === 0 && this.dropdown.show()
this.state.hasFocus = true

return this
},
Expand Down

0 comments on commit 2fa118c

Please sign in to comment.