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 21589bc2904d7..da7a9915e77e5 100644
--- ui/views/controls/textfield/textfield.cc
+++ ui/views/controls/textfield/textfield.cc
@@ -3014,6 +3014,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.