react-multi-email
Advanced tools
Comparing version
@@ -95,3 +95,3 @@ "use strict"; | ||
ReactMultiEmail.getDerivedStateFromProps = function (nextProps, prevState) { | ||
if (prevState.emails !== nextProps.emails) { | ||
if (JSON.stringify(prevState.emails) !== JSON.stringify(nextProps.emails)) { | ||
return { emails: nextProps.emails || [], inputValue: '', focused: false }; | ||
@@ -98,0 +98,0 @@ } |
@@ -81,3 +81,3 @@ import * as React from 'react'; | ||
static getDerivedStateFromProps(nextProps, prevState) { | ||
if (prevState.emails !== nextProps.emails) { | ||
if (JSON.stringify(prevState.emails) !== JSON.stringify(nextProps.emails)) { | ||
return { emails: nextProps.emails || [], inputValue: '', focused: false }; | ||
@@ -84,0 +84,0 @@ } |
{ | ||
"name": "react-multi-email", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "React multi email input", | ||
@@ -5,0 +5,0 @@ "jsnext:main": "es6/index.js", |
24315
0.26%