cef/patch/patches/views_textfield_5399416.patch

16 lines
605 B
Diff
Raw Normal View History

diff --git ui/views/controls/textfield/textfield.cc ui/views/controls/textfield/textfield.cc
index d2ababefae343..423eff10fe3d1 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.