Skip to content

Commit

Permalink
fix(textarea): do not apply children (uber#5174)
Browse files Browse the repository at this point in the history
  • Loading branch information
chasestarr authored Sep 27, 2022
1 parent 2191910 commit 191d7bc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/input/base-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,6 @@ class BaseInput<T extends HTMLInputElement | HTMLTextAreaElement> extends React.

render() {
const {
value,
type,
overrides: {
InputContainer: InputContainerOverride,
Input: InputOverride,
Expand Down Expand Up @@ -356,9 +354,7 @@ class BaseInput<T extends HTMLInputElement | HTMLTextAreaElement> extends React.
rows={this.props.type === CUSTOM_INPUT_TYPE.textarea ? this.props.rows : null}
{...sharedProps}
{...inputProps}
>
{type === CUSTOM_INPUT_TYPE.textarea ? value : null}
</Input>
/>
{this.renderClear()}
{this.renderMaskToggle()}
<After {...sharedProps} {...afterProps} />
Expand Down

0 comments on commit 191d7bc

Please sign in to comment.