Skip to content

Commit 378f4de

Browse files
authored
[text-field](ios): fix default color placeholder
1 parent 9b2fd6c commit 378f4de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/textfield/textfield.ios.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ export class TextField extends TextFieldBase {
305305
this._updateAttributedPlaceholder();
306306
}
307307
[placeholderColorProperty.setNative](value: UIColor | Color) {
308+
const color = value instanceof Color ? value.ios : value;
309+
this.nativeViewProtected.setNormalLabelColorForState(color, MDCTextControlState.Normal);
308310
this._updateAttributedPlaceholder();
309311
}
310312
[hintProperty.setNative](value: string) {

0 commit comments

Comments
 (0)