Skip to content

Commit 4617324

Browse files
authored
[Input] remove extraneous props when using custom component (#7784)
1 parent 25512fe commit 4617324

File tree

2 files changed

+600
-21
lines changed

2 files changed

+600
-21
lines changed

src/Input/Input.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -478,16 +478,9 @@ class Input extends Component<DefaultProps, AllProps, State> {
478478
};
479479

480480
if (component) {
481-
inputProps = {
482-
rowsMax,
483-
...inputProps,
484-
};
485481
InputComponent = component;
486482
} else if (multiline) {
487483
if (rows && !rowsMax) {
488-
inputProps = {
489-
...inputProps,
490-
};
491484
InputComponent = 'textarea';
492485
} else {
493486
inputProps = {

0 commit comments

Comments
 (0)