Skip to content

Commit cbd63f9

Browse files
authored
Fixed textField placeholder color, support in design token (#2275)
1 parent d03ffdb commit cbd63f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/incubator/TextField/Presenter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function getColorByState(color?: ColorType, context?: FieldContextType) {
1818
finalColor = color?.focus;
1919
}
2020

21-
finalColor = finalColor || color?.default || Colors.$textDefault;
21+
finalColor = finalColor || color?.default || (color as string) || Colors.$textDefault;
2222
}
2323

2424
return finalColor;

0 commit comments

Comments
 (0)