Skip to content

Commit

Permalink
[Select] Simpler onChange event.target logic (#12231)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Jul 21, 2018
1 parent d077c6e commit 969042a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/material-ui/src/Select/SelectInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ class SelectInput extends React.Component {

if (onChange) {
let value;
let target;

if (event.target) {
target = event.target;
}

if (this.props.multiple) {
value = Array.isArray(this.props.value) ? [...this.props.value] : [];
Expand All @@ -99,8 +94,7 @@ class SelectInput extends React.Component {
}

event.persist();
event.target = { ...target, value, name };

event.target = { value, name };
onChange(event, child);
}
};
Expand Down

0 comments on commit 969042a

Please sign in to comment.