From be6a2b4888b9fbb02b38500d1176ce9cde06535f Mon Sep 17 00:00:00 2001 From: Jochen Berger Date: Fri, 22 Jul 2016 08:57:40 +0200 Subject: [PATCH] replace blacklist dependency by using the spread operator --- package.json | 1 - src/Select.js | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index c5d9f04939..b8ccaac0d1 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "url": "https://github.com/JedWatson/react-select.git" }, "dependencies": { - "blacklist": "^1.1.2", "classnames": "^2.2.4", "react-input-autosize": "^1.1.0" }, diff --git a/src/Select.js b/src/Select.js index 21748bb94b..5031419cd9 100644 --- a/src/Select.js +++ b/src/Select.js @@ -2,7 +2,6 @@ import React from 'react'; import ReactDOM from 'react-dom'; import Input from 'react-input-autosize'; import classNames from 'classnames'; -import blacklist from 'blacklist'; import stripDiacritics from './utils/stripDiacritics'; @@ -770,7 +769,7 @@ const Select = React.createClass({ }); if (this.props.disabled || !this.props.searchable) { - const divProps = blacklist(this.props.inputProps, 'inputClassName'); + const { inputClassName, ...divProps } = this.props.inputProps; return (