From 93c513eaf1b680d69483443d7b16b9865677398d Mon Sep 17 00:00:00 2001 From: reinaldo Date: Sat, 24 Jun 2023 09:03:14 +0700 Subject: [PATCH] Revert hidden text placeholder on BaseTextInput --- src/components/TextInput/BaseTextInput.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/TextInput/BaseTextInput.js b/src/components/TextInput/BaseTextInput.js index d18da6f99934..91ab2162674f 100644 --- a/src/components/TextInput/BaseTextInput.js +++ b/src/components/TextInput/BaseTextInput.js @@ -224,8 +224,6 @@ class BaseTextInput extends Component { {}, ); const isMultiline = this.props.multiline || this.props.autoGrowHeight; - //if AutoGrowWeight is true, placeholder needs to be filled with any string. - const hiddenTextPlaceholder = this.props.placeholder ? this.props.placeholder : this.props.autoGrowHeight ? ' ' : ''; return ( <> @@ -390,7 +388,7 @@ class BaseTextInput extends Component { ]} onLayout={(e) => this.setState({textInputWidth: e.nativeEvent.layout.width + 2, textInputHeight: e.nativeEvent.layout.height})} > - {this.state.value || hiddenTextPlaceholder} + {this.state.value || this.props.placeholder} )}