File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -275,9 +275,8 @@ export default class TextField extends BaseInput {
275
275
}
276
276
} ;
277
277
278
- getPlaceholderText = memoize ( ( ) => {
278
+ getPlaceholderText = memoize ( ( placeholder , helperText ) => {
279
279
// HACK: passing whitespace instead of undefined. Issue fixed in RN56
280
- const { placeholder, helperText} = this . props ;
281
280
const text = this . shouldFakePlaceholder ( )
282
281
? this . shouldShowHelperText ( )
283
282
? helperText
@@ -588,6 +587,8 @@ export default class TextField extends BaseInput {
588
587
expandable,
589
588
rightIconSource,
590
589
color,
590
+ placeholder,
591
+ helperText,
591
592
...others
592
593
} = this . getThemeProps ( ) ;
593
594
@@ -610,7 +611,7 @@ export default class TextField extends BaseInput {
610
611
style
611
612
] ;
612
613
613
- const placeholderText = this . getPlaceholderText ( ) ;
614
+ const placeholderText = this . getPlaceholderText ( placeholder , helperText ) ;
614
615
const placeholderColor = this . getStateColor ( placeholderTextColor || PLACEHOLDER_COLOR_BY_STATE . default ) ;
615
616
const isEditable = ! this . isDisabled ( ) && ! expandable ;
616
617
You can’t perform that action at this time.
0 commit comments