react-tag-autocomplete
Advanced tools
Comparing version 5.12.0 to 5.12.1
# Changelog | ||
## 5.12.1 | ||
- Fixed an issue where the `componentDidUpdate()` callback of the input component can be called too many times | ||
## 5.12.0 | ||
@@ -4,0 +8,0 @@ |
@@ -19,3 +19,4 @@ 'use strict' | ||
'fontStyle', | ||
'letterSpacing' | ||
'letterSpacing', | ||
'textTransform' | ||
] | ||
@@ -44,4 +45,9 @@ | ||
Input.prototype.componentDidUpdate = function componentDidUpdate () { | ||
this.updateInputWidth() | ||
Input.prototype.componentDidUpdate = function componentDidUpdate (ref) { | ||
var query = ref.query; | ||
var placeholder = ref.placeholder; | ||
if (query !== this.props.query || placeholder !== this.props.placeholder) { | ||
this.updateInputWidth() | ||
} | ||
}; | ||
@@ -48,0 +54,0 @@ |
@@ -19,3 +19,4 @@ 'use strict' | ||
'fontStyle', | ||
'letterSpacing' | ||
'letterSpacing', | ||
'textTransform' | ||
] | ||
@@ -40,4 +41,6 @@ | ||
componentDidUpdate () { | ||
this.updateInputWidth() | ||
componentDidUpdate ({ query, placeholder }) { | ||
if (query !== this.props.query || placeholder !== this.props.placeholder) { | ||
this.updateInputWidth() | ||
} | ||
} | ||
@@ -44,0 +47,0 @@ |
@@ -19,3 +19,4 @@ 'use strict' | ||
'fontStyle', | ||
'letterSpacing' | ||
'letterSpacing', | ||
'textTransform' | ||
] | ||
@@ -40,4 +41,6 @@ | ||
componentDidUpdate () { | ||
this.updateInputWidth() | ||
componentDidUpdate ({ query, placeholder }) { | ||
if (query !== this.props.query || placeholder !== this.props.placeholder) { | ||
this.updateInputWidth() | ||
} | ||
} | ||
@@ -44,0 +47,0 @@ |
{ | ||
"name": "react-tag-autocomplete", | ||
"version": "5.12.0", | ||
"version": "5.12.1", | ||
"description": "React Tag Autocomplete is a simple tagging component ready to drop in your React projects.", | ||
@@ -5,0 +5,0 @@ "main": "dist-es5/ReactTags.js", |
56106
1143