2024-03-26 22:48:23 +01:00
|
|
|
diff --git ui/views/controls/textfield/textfield.cc ui/views/controls/textfield/textfield.cc
|
2024-09-27 16:15:44 +02:00
|
|
|
index 21589bc2904d7..da7a9915e77e5 100644
|
2024-03-26 22:48:23 +01:00
|
|
|
--- ui/views/controls/textfield/textfield.cc
|
|
|
|
+++ ui/views/controls/textfield/textfield.cc
|
2024-09-27 16:15:44 +02:00
|
|
|
@@ -3014,6 +3014,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.
|