cef/patch/patches/views_textfield_5399416.patch

16 lines
527 B
Diff
Raw Normal View History

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