Skip to content

Commit

Permalink
fixes yairEO#1062 - edited tag with only changed casing is wrongfully…
Browse files Browse the repository at this point in the history
… marked as dulpicate
  • Loading branch information
Yair Even Or authored and Yair Even Or committed Jul 13, 2022
1 parent 39a61fc commit 9f30756
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/parts/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,9 +787,10 @@ export default {
var _s = this.settings,
tagElm = editableElm.closest('.' + _s.classNames.tag),
textValue = this.input.normalize.call(this, editableElm),
originalData = this.tagData(tagElm).__originalData, // pre-edit data
hasChanged = this.editTagChangeDetected( this.tagData(tagElm) ),
isValid = this.validateTag({[_s.tagTextProp]: textValue}),
tagData = this.tagData(tagElm),
originalData = tagData.__originalData, // pre-edit data
hasChanged = this.editTagChangeDetected( tagData ),
isValid = this.validateTag({[_s.tagTextProp]: textValue, __tagId: tagData.__tagId}), // "__tagId" is needed so validation will skip current tag when checking for dups
hasMaxTags,
newTagData;

Expand Down

0 comments on commit 9f30756

Please sign in to comment.