Skip to content

Commit b4a4668

Browse files
author
Stephan Dilly
committed
Fix textinput cursor was not reset after msg.clear
1 parent b86f3a3 commit b4a4668

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/textinput.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ impl TextInputComponent {
4747
/// Clear the `msg`.
4848
pub fn clear(&mut self) {
4949
self.msg.clear();
50+
self.cursor_position = 0;
5051
}
5152

5253
/// Get the `msg`.

0 commit comments

Comments
 (0)