diff --git a/src/ui/widget/common/form.rs b/src/ui/widget/common/form.rs index b22f0e67..474b6e9b 100644 --- a/src/ui/widget/common/form.rs +++ b/src/ui/widget/common/form.rs @@ -73,7 +73,9 @@ impl WidgetComponent for TextInput { let result = self.input.perform(cmd); if let State::Vec(values) = self.input.state() { if let Some(StateValue::String(input)) = values.first() { - self.show_placeholder = input.is_empty(); + self.show_placeholder = values.len() == 1 && input.is_empty(); + } else { + self.show_placeholder = false; } } result