Skip to content

Commit e670e81

Browse files
committed
[fix] TextInput forwards placeholderTextColor
Fix a bug introduced by 924e891 Ref #1512
1 parent e22f0be commit e670e81

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/docs/src/components/TextInput/TextInput.stories.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ The string that will be rendered in an empty `TextInput` before text has been en
184184
</Story>
185185
</Preview>
186186

187-
### placeholderTextColor: ?color
187+
### placeholderTextColor
188188

189189
The text color of the placeholder string.
190190

@@ -212,7 +212,7 @@ passwords stay secure. (Not available when `multiline` is `true`.)
212212
</Story>
213213
</Preview>
214214

215-
### selection: ?{ start: number, end: ?number }
215+
### selection
216216

217217
The start and end of the text input's selection. Set start and end to the same
218218
value to position the cursor.
@@ -232,7 +232,7 @@ If `true`, all text will automatically be selected on focus.
232232
If `false`, disables spell-check style (i.e. red underlines). The default value
233233
is inherited from `autoCorrect`. (Only available in supporting browsers).
234234

235-
### style: ?style
235+
### style
236236

237237
```js
238238
{

packages/react-native-web/src/exports/TextInput/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ class TextInput extends React.Component<TextInputProps> {
107107
multiline = false,
108108
numberOfLines = 1,
109109
placeholder,
110+
placeholderTextColor,
110111
returnKeyType,
111112
secureTextEntry = false,
112113
spellCheck,
@@ -162,6 +163,7 @@ class TextInput extends React.Component<TextInputProps> {
162163
onKeyPress: this._handleKeyPress,
163164
onSelect: normalizeEventHandler(this._handleSelectionChange),
164165
placeholder,
166+
placeholderTextColor,
165167
readOnly: !editable,
166168
ref: this._setNode,
167169
spellCheck: spellCheck != null ? spellCheck : autoCorrect,

0 commit comments

Comments
 (0)