Skip to content

Commit

Permalink
[Select] pass child to onChange handler
Browse files Browse the repository at this point in the history
  • Loading branch information
akaxiaok committed Sep 1, 2018
1 parent 20f0926 commit a01ba75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/material-ui/src/Input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,14 @@ class Input extends React.Component {
}
};

handleChange = event => {
handleChange = (...args) => {
if (!this.isControlled) {
this.checkDirty(this.inputRef);
}

// Perform in the willUpdate
if (this.props.onChange) {
this.props.onChange(event);
this.props.onChange(...args);
}
};

Expand Down

0 comments on commit a01ba75

Please sign in to comment.