Skip to content

Commit

Permalink
4.13.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Yair Even Or authored and Yair Even Or committed Jul 11, 2022
1 parent 5593105 commit 39a61fc
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 14 deletions.
6 changes: 3 additions & 3 deletions dist/jQuery.tagify.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/react.tagify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions dist/tagify.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Tagify (v 4.13.1) - tags input component
* Tagify (v 4.13.2) - tags input component
* By Yair Even-Or
* https://github.com/yairEO/tagify
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -1833,9 +1833,11 @@ var events = {
tagData = this.tagData(tagElm),
textValue = this.input.normalize.call(this, editableElm),
dataForChangedProp = {
[this.settings.tagTextProp]: textValue
[this.settings.tagTextProp]: textValue,
__tagId: tagData.__tagId
},
isValid = this.validateTag(dataForChangedProp),
// "__tagId" is needed so validation will skip current tag when checking for dups
isValid = this.validateTag(dataForChangedProp),
// the value could have been invalid in the first-place so make sure to re-validate it (via "addEmptyTag" method)
hasChanged = this.editTagChangeDetected(extend(tagData, dataForChangedProp)); // if the value is same as before-editing and the tag was valid before as well, ignore the current "isValid" result, which is false-positive

Expand Down
8 changes: 5 additions & 3 deletions dist/tagify.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Tagify (v 4.13.1) - tags input component
* Tagify (v 4.13.2) - tags input component
* By Yair Even-Or
* https://github.com/yairEO/tagify
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -1839,9 +1839,11 @@
tagData = this.tagData(tagElm),
textValue = this.input.normalize.call(this, editableElm),
dataForChangedProp = {
[this.settings.tagTextProp]: textValue
[this.settings.tagTextProp]: textValue,
__tagId: tagData.__tagId
},
isValid = this.validateTag(dataForChangedProp),
// "__tagId" is needed so validation will skip current tag when checking for dups
isValid = this.validateTag(dataForChangedProp),
// the value could have been invalid in the first-place so make sure to re-validate it (via "addEmptyTag" method)
hasChanged = this.editTagChangeDetected(extend(tagData, dataForChangedProp)); // if the value is same as before-editing and the tag was valid before as well, ignore the current "isValid" result, which is false-positive

Expand Down
4 changes: 2 additions & 2 deletions dist/tagify.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tagify.polyfills.min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Tagify (v 4.13.1) - tags input component
* Tagify (v 4.13.2) - tags input component
* By Yair Even-Or
* https://github.com/yairEO/tagify
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yaireo/tagify",
"version": "4.13.1",
"version": "4.13.2",
"homepage": "https://github.com/yairEO/tagify",
"description": "lightweight, efficient Tags input component in Vanilla JS / React / Angular [super customizable, tiny size & top performance]",
"keywords": [
Expand Down

0 comments on commit 39a61fc

Please sign in to comment.