Skip to content

Commit c669d51

Browse files
bmigirlTrancever
authored andcommitted
fix: fix text input disappearing value on blur when in uncontrolled mode (#1434)
1 parent 53e1eca commit c669d51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/TextInput/TextInput.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ class TextInput extends React.Component<TextInputProps, State> {
409409
return mode === 'outlined' ? (
410410
<TextInputOutlined
411411
{...rest}
412+
value={this.state.value}
412413
parentState={this.state}
413414
innerRef={ref => {
414415
this.root = ref;
@@ -421,6 +422,7 @@ class TextInput extends React.Component<TextInputProps, State> {
421422
) : (
422423
<TextInputFlat
423424
{...rest}
425+
value={this.state.value}
424426
parentState={this.state}
425427
innerRef={ref => {
426428
this.root = ref;

0 commit comments

Comments
 (0)