Changed the way the object is assigned

This commit is contained in:
Oleksandr Zhurbenko 2017-10-12 17:20:27 -07:00
parent 21dcafb047
commit b3572cec3a

View File

@ -41,7 +41,7 @@ export default class DropdownTrigger extends Component {
}
render() {
const remainingProps = Object.assign({}, this.props);
const remainingProps = { ...this.props };
delete remainingProps.dropdownToggle;
delete remainingProps.dropdownShow;
delete remainingProps.dropdownHide;