Skip to content

Commit 22ff0aa

Browse files
author
farfromrefug
committed
fix(textfield,android): strokeColor was not applied correctly
1 parent 4bf2cb0 commit 22ff0aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/textfield/textfield.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export class TextField extends TextFieldBase {
232232
[strokeColorProperty.setNative](value: Color | string) {
233233
const color = value ? (value instanceof Color ? value.android : new Color(value).android) : null;
234234
if (this.layoutView.setBoxStrokeColorStateList) {
235-
const inactiveColor = this.strokeInactiveColor instanceof Color ? this.strokeInactiveColor.android : undefined;
235+
const inactiveColor = this.strokeInactiveColor instanceof Color ? this.strokeInactiveColor.android : color;
236236
const disabledColor = this.strokeDisabledColor instanceof Color ? this.strokeDisabledColor.android : undefined;
237237
const colorStateList = getFullColorStateList(color, inactiveColor, disabledColor);
238238
this.layoutView.setBoxStrokeColorStateList(colorStateList);
@@ -255,7 +255,7 @@ export class TextField extends TextFieldBase {
255255
const color = value ? (value instanceof Color ? value.android : new Color(value).android) : null;
256256
if (this.layoutView.setBoxStrokeColorStateList) {
257257
const activeColor = this.strokeColor instanceof Color ? this.strokeColor.android : this.layoutView.getBoxStrokeColor();
258-
const inactiveColor = this.strokeInactiveColor instanceof Color ? this.strokeInactiveColor.android : undefined;
258+
const inactiveColor = this.strokeInactiveColor instanceof Color ? this.strokeInactiveColor.android : activeColor;
259259
const colorStateList = getFullColorStateList(activeColor, inactiveColor, color);
260260
this.layoutView.setBoxStrokeColorStateList(colorStateList);
261261
}

0 commit comments

Comments
 (0)