You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

react-multi-email

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-multi-email - npm Package Compare versions

Comparing version

to
0.3.4

2

commonjs/ReactMultiEmail.js

@@ -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",