From b4a466876e3aa70d4196cddf2f6fa805614e0803 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Mon, 15 Jun 2020 12:09:22 +0200 Subject: [PATCH] Fix textinput cursor was not reset after msg.clear --- src/components/textinput.rs | 1 + 1 file changed, 1 insertion(+) 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`.