cef/patch/patches/views_textfield_5399416.patch

16 lines
605 B
Diff

diff --git ui/views/controls/textfield/textfield.cc ui/views/controls/textfield/textfield.cc
index ca0720729d433..6aa7907ca7c28 100644
--- ui/views/controls/textfield/textfield.cc
+++ ui/views/controls/textfield/textfield.cc
@@ -3006,6 +3006,10 @@ void Textfield::OnCursorBlinkTimerFired() {
void Textfield::OnEnabledChanged() {
if (GetInputMethod())
GetInputMethod()->OnTextInputTypeChanged(this);
+ if (GetWidget()) {
+ SetColor(GetTextColor());
+ UpdateBackgroundColor();
+ }
UpdateDefaultBorder();
// Only expose readonly if enabled. Don't overwrite the disabled restriction.