@yaireo/tagify
Advanced tools
Comparing version 2.7.1 to 2.7.2
@@ -0,0 +0,0 @@ "use strict"; |
@@ -26,6 +26,2 @@ // import React from 'react'; | ||
} | ||
componentWillUnmount(){ | ||
this.component.removeEventListener('tabclosed', this.onTabClosed); | ||
} | ||
@@ -37,7 +33,3 @@ shouldComponentUpdate(nextProps, nextState){ | ||
onTabClosed = ({detail: component}) => { | ||
this.props.onTabClosed && this.props.onTabClosed(component.getAttribute('tabId')); | ||
} | ||
_handleRef = (component) => { | ||
_handleRef(component){ | ||
this.component = component; | ||
@@ -48,7 +40,7 @@ } | ||
const attrs = { | ||
ref : this._handleRef, | ||
name : this.props.name, | ||
className : this.props.className, | ||
placeholder : this.props.class, | ||
autoFocus : this.props.autofocus | ||
ref : this._handleRef.bind(this), | ||
name : this.props.name, | ||
className : this.props.className, | ||
placeholder : this.props.class, | ||
autoFocus : this.props.autofocus | ||
} | ||
@@ -61,2 +53,2 @@ | ||
} | ||
} | ||
} |
@@ -0,0 +0,0 @@ /** |
{ | ||
"name": "@yaireo/tagify", | ||
"version": "2.7.1", | ||
"version": "2.7.2", | ||
"homepage": "https://github.com/yairEO/tagify", | ||
@@ -5,0 +5,0 @@ "description": "Convert an input field into a Tags element. Easy, customizable, with good performance and small code footprint.", |
385980
18
3161