Skip to content

Commit

Permalink
Merge pull request #1115 from jochenberger/master
Browse files Browse the repository at this point in the history
replace `blacklist` dependency by using the spread operator
  • Loading branch information
JedWatson authored Jul 24, 2016
2 parents 20c0fe7 + be6a2b4 commit 4dd253a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
3 changes: 1 addition & 2 deletions src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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 (
<div
{...divProps}
Expand Down

0 comments on commit 4dd253a

Please sign in to comment.