Skip to content

Commit

Permalink
4.19.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yairEO committed Jan 29, 2024
1 parent 7c63fec commit b2cb706
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 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.

14 changes: 7 additions & 7 deletions dist/tagify.esm.js
@@ -1,5 +1,5 @@
/**
* Tagify (v 4.19.0) - tags input component
* Tagify (v 4.19.1) - tags input component
* By undefined
* https://github.com/yairEO/tagify
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -2181,12 +2181,12 @@ var events = {
case 'Tab':
{
e.preventDefault();
var EDITED_TAG_BLUR_DELAY = 100;
var EDITED_TAG_BLUR_DELAY = 0;

// a setTimeout is used so when editing (in "select" mode) while the dropdown is shown and a suggestion is highlighted
// and ENTER key is pressed down - the `dropdown.hide` method won't be invoked immediately and unbind the dropdown's
// KEYDOWN "ENTER" before it has time to call the handler and select the suggestion.
setTimeout(e.target.blur, EDITED_TAG_BLUR_DELAY);
setTimeout(() => e.target.blur(), EDITED_TAG_BLUR_DELAY);
}
}
},
Expand Down Expand Up @@ -2779,12 +2779,12 @@ Tagify.prototype = {
// might be simpler - just an array of primitives.
function veryfyTagTextProp() {
var tagTextProp = tagData[_s.tagTextProp];
if (tagTextProp !== '') {
return tagTextProp.trim?.();
if (tagTextProp) {
return !!tagTextProp.trim?.();
}
if (!(_s.tagTextProp in tagData)) return tagData.value;
if (!(_s.tagTextProp in tagData)) return !!tagData.value;
}
if (tagElm && veryfyTagTextProp() !== '') {
if (tagElm && veryfyTagTextProp()) {
tagElm = this.replaceTag(tagElm, tagData);
this.editTagToggleValidity(tagElm, tagData);
if (_s.a11y.focusableTags) tagElm.focus();else
Expand Down
14 changes: 7 additions & 7 deletions dist/tagify.js
@@ -1,5 +1,5 @@
/**
* Tagify (v 4.19.0) - tags input component
* Tagify (v 4.19.1) - tags input component
* By undefined
* https://github.com/yairEO/tagify
* Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down Expand Up @@ -2187,12 +2187,12 @@
case 'Tab':
{
e.preventDefault();
var EDITED_TAG_BLUR_DELAY = 100;
var EDITED_TAG_BLUR_DELAY = 0;

// a setTimeout is used so when editing (in "select" mode) while the dropdown is shown and a suggestion is highlighted
// and ENTER key is pressed down - the `dropdown.hide` method won't be invoked immediately and unbind the dropdown's
// KEYDOWN "ENTER" before it has time to call the handler and select the suggestion.
setTimeout(e.target.blur, EDITED_TAG_BLUR_DELAY);
setTimeout(() => e.target.blur(), EDITED_TAG_BLUR_DELAY);
}
}
},
Expand Down Expand Up @@ -2785,12 +2785,12 @@
// might be simpler - just an array of primitives.
function veryfyTagTextProp() {
var tagTextProp = tagData[_s.tagTextProp];
if (tagTextProp !== '') {
return tagTextProp.trim?.();
if (tagTextProp) {
return !!tagTextProp.trim?.();
}
if (!(_s.tagTextProp in tagData)) return tagData.value;
if (!(_s.tagTextProp in tagData)) return !!tagData.value;
}
if (tagElm && veryfyTagTextProp() !== '') {
if (tagElm && veryfyTagTextProp()) {
tagElm = this.replaceTag(tagElm, tagData);
this.editTagToggleValidity(tagElm, tagData);
if (_s.a11y.focusableTags) tagElm.focus();else
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
@@ -1,5 +1,5 @@
/**
* Tagify (v 4.19.0) - tags input component
* Tagify (v 4.19.1) - tags input component
* By undefined
* 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
@@ -1,6 +1,6 @@
{
"name": "@yaireo/tagify",
"version": "4.19.0",
"version": "4.19.1",
"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 b2cb706

Please sign in to comment.