Fix textinput cursor was not reset after msg.clear

This commit is contained in:
Stephan Dilly 2020-06-15 12:09:22 +02:00
parent b86f3a3f40
commit b4a466876e

View File

@ -47,6 +47,7 @@ impl TextInputComponent {
/// Clear the `msg`.
pub fn clear(&mut self) {
self.msg.clear();
self.cursor_position = 0;
}
/// Get the `msg`.