diff --git a/src/components/textinput.rs b/src/components/textinput.rs index 8ce8c7a0..4f2bf0f5 100644 --- a/src/components/textinput.rs +++ b/src/components/textinput.rs @@ -89,7 +89,7 @@ impl TextInputComponent { /// Set the `msg`. pub fn set_text(&mut self, msg: String) { self.msg = msg; - //TODO: make sure cursor is in bounds + self.cursor_position = 0; } /// Set the `title`.