2024-03-26 22:48:23 +01:00
|
|
|
diff --git ui/views/controls/textfield/textfield.cc ui/views/controls/textfield/textfield.cc
|
2024-08-26 14:44:25 +02:00
|
|
|
index 404bb1abdfa68..dd9ed220b07f6 100644
|
2024-03-26 22:48:23 +01:00
|
|
|
--- ui/views/controls/textfield/textfield.cc
|
|
|
|
+++ ui/views/controls/textfield/textfield.cc
|
2024-08-26 14:44:25 +02:00
|
|
|
@@ -3016,6 +3016,10 @@ void Textfield::OnCursorBlinkTimerFired() {
|
2024-03-26 22:48:23 +01:00
|
|
|
void Textfield::OnEnabledChanged() {
|
|
|
|
if (GetInputMethod())
|
|
|
|
GetInputMethod()->OnTextInputTypeChanged(this);
|
|
|
|
+ if (GetWidget()) {
|
|
|
|
+ SetColor(GetTextColor());
|
|
|
|
+ UpdateBackgroundColor();
|
|
|
|
+ }
|
|
|
|
UpdateDefaultBorder();
|
|
|
|
|
2024-07-29 19:09:20 +02:00
|
|
|
// Only expose readonly if enabled. Don't overwrite the disabled restriction.
|