@yaireo/tagify
Advanced tools
Comparing version 4.32.0 to 4.32.1
/* | ||
Tagify v4.32.0 - tags input component | ||
Tagify v4.32.1 - tags input component | ||
By: Yair Even-Or <vsync.design@gmail.com> | ||
@@ -4,0 +4,0 @@ https://github.com/yairEO/tagify |
{ | ||
"name": "@yaireo/tagify", | ||
"version": "4.32.0", | ||
"version": "4.32.1", | ||
"homepage": "https://github.com/yairEO/tagify", | ||
@@ -5,0 +5,0 @@ "description": "lightweight, efficient Tags input component in Vanilla JS / React / Angular [super customizable, tiny size & top performance]", |
@@ -150,4 +150,4 @@ import { decode, extend, getfirstTextNode, isChromeAndroidBrowser, isNodeTag, isWithinNodeTag, injectAtCaret, getSetTagData, fixCaretBetweenTags, placeCaretAfterNode } from './helpers' | ||
var _s = this.settings, | ||
nodeTag = isWithinNodeTag.call(this, e.target), | ||
targetIsTagNode = isNodeTag.call(this, e.target), | ||
nodeTag = isWithinNodeTag.call(this, e.relatedTarget), | ||
targetIsTagNode = isNodeTag.call(this, e.relatedTarget), | ||
isTargetXBtn = e.target.classList.contains(_s.classNames.tagX), | ||
@@ -161,2 +161,6 @@ isFocused = e.type == 'focusin', | ||
if(isTargetXBtn && _s.mode != 'mix') { | ||
this.DOM.input.focus() | ||
} | ||
if( nodeTag && isFocused && (!targetIsTagNode) && !isTargetXBtn) { | ||
@@ -197,3 +201,2 @@ this.toggleFocusClass(this.state.hasFocus = +new Date()) | ||
this.state.hasFocus = +new Date() | ||
this.toggleFocusClass(this.state.hasFocus) | ||
} | ||
@@ -204,2 +207,4 @@ else { | ||
this.toggleFocusClass(this.state.hasFocus) | ||
if( _s.mode == 'mix' ){ | ||
@@ -228,3 +233,2 @@ if( isFocused ){ | ||
this.toggleFocusClass(true); | ||
this.trigger("focus", eventData) | ||
@@ -504,6 +508,5 @@ // e.target.classList.remove('placeholder'); | ||
} | ||
case 'Tab' : { | ||
let selectMode = _s.mode == 'select' | ||
if(s && !selectMode) e.preventDefault() | ||
else return true; | ||
return true; | ||
} | ||
@@ -510,0 +513,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4328557