react-multi-email
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -85,5 +85,4 @@ "use strict"; | ||
_this.setState(function (prevState) { | ||
prevState.emails.splice(index, 1); | ||
return { | ||
emails: prevState.emails, | ||
emails: prevState.emails.slice(0, index).concat(prevState.emails.slice(index + 1)), | ||
}; | ||
@@ -90,0 +89,0 @@ }, function () { |
@@ -72,5 +72,7 @@ import * as React from 'react'; | ||
this.setState(prevState => { | ||
prevState.emails.splice(index, 1); | ||
return { | ||
emails: prevState.emails, | ||
emails: [ | ||
...prevState.emails.slice(0, index), | ||
...prevState.emails.slice(index + 1), | ||
], | ||
}; | ||
@@ -77,0 +79,0 @@ }, () => { |
{ | ||
"name": "react-multi-email", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "React multi email input", | ||
@@ -5,0 +5,0 @@ "jsnext:main": "es6/index.js", |
26506
669