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 931fd32050882..06f009728d812 100644
--- ui/views/controls/textfield/textfield.cc
+++ ui/views/controls/textfield/textfield.cc
@@ -3017,6 +3017,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.