Skip to content

Commit

Permalink
[Input] remove extraneous props when using custom component (#7784)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosskevin authored Aug 16, 2017
1 parent 25512fe commit 4617324
Show file tree
Hide file tree
Showing 2 changed files with 600 additions and 21 deletions.
7 changes: 0 additions & 7 deletions src/Input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,16 +478,9 @@ class Input extends Component<DefaultProps, AllProps, State> {
};

if (component) {
inputProps = {
rowsMax,
...inputProps,
};
InputComponent = component;
} else if (multiline) {
if (rows && !rowsMax) {
inputProps = {
...inputProps,
};
InputComponent = 'textarea';
} else {
inputProps = {
Expand Down
Loading

0 comments on commit 4617324

Please sign in to comment.