cef/patch/patches/views_textfield_5399416.patch

16 lines
527 B
Diff

diff --git ui/views/controls/textfield/textfield.cc ui/views/controls/textfield/textfield.cc
index 60e154e91a9e6..0a3fa6255836f 100644
--- ui/views/controls/textfield/textfield.cc
+++ ui/views/controls/textfield/textfield.cc
@@ -2972,6 +2972,10 @@ void Textfield::OnCursorBlinkTimerFired() {
void Textfield::OnEnabledChanged() {
if (GetInputMethod())
GetInputMethod()->OnTextInputTypeChanged(this);
+ if (GetWidget()) {
+ SetColor(GetTextColor());
+ UpdateBackgroundColor();
+ }
UpdateDefaultBorder();
}