Skip to content

Commit 8055347

Browse files
committed
fix(textfield): wrong hint colors
1 parent e0e3ee3 commit 8055347

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/textfield/textfield.android.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,21 +140,21 @@ export class TextField extends TextFieldBase {
140140
[placeholderColorProperty.setNative](value: Color) {
141141
const placeholderColor = value instanceof Color ? value.android : value;
142142
const floatingColor = this.floatingColor instanceof Color ? this.floatingColor.android : placeholderColor;
143-
this.layoutView.setHintTextColor(getFullColorStateList(floatingColor, placeholderColor));
143+
this.layoutView.setDefaultHintTextColor(getFullColorStateList(floatingColor, placeholderColor));
144144
}
145145

146146
[floatingColorProperty.setNative](value: Color) {
147147
const floatingColor = value instanceof Color ? value.android : value;
148148
const placeholderColor = this.floatingInactiveColor instanceof Color ? this.floatingInactiveColor.android : undefined;
149-
this.layoutView.setDefaultHintTextColor(getFullColorStateList(floatingColor, placeholderColor));
149+
this.layoutView.setHintTextColor(getFullColorStateList(floatingColor, placeholderColor));
150150
}
151151

152152
[floatingInactiveColorProperty.setNative](value: Color) {
153153
const floatingInactiveColor = value instanceof Color ? value.android : value;
154154

155155
const primaryColor = themer.getPrimaryColor();
156156
const floatingColor = this.floatingColor || (primaryColor instanceof Color ? primaryColor : new Color(primaryColor));
157-
this.layoutView.setDefaultHintTextColor(getFullColorStateList(floatingColor instanceof Color ? floatingColor.android : floatingColor, floatingInactiveColor));
157+
this.layoutView.setHintTextColor(getFullColorStateList(floatingColor instanceof Color ? floatingColor.android : floatingColor, floatingInactiveColor));
158158
}
159159
[helperColorProperty.setNative](value) {
160160
const color = value instanceof Color ? value.android : value;

0 commit comments

Comments
 (0)