diff --git a/src/components/textinput.rs b/src/components/textinput.rs index bbc73099..7938e19b 100644 --- a/src/components/textinput.rs +++ b/src/components/textinput.rs @@ -47,6 +47,7 @@ impl TextInputComponent { /// Clear the `msg`. pub fn clear(&mut self) { self.msg.clear(); + self.cursor_position = 0; } /// Get the `msg`.