fix: request redraw in text input when needed
This commit is contained in:
parent
5fd1ca4220
commit
31ec448bf0
1 changed files with 3 additions and 0 deletions
|
|
@ -1680,6 +1680,7 @@ pub fn update<'a, Message: Clone + 'static>(
|
|||
|
||||
state.last_click = Some(click);
|
||||
|
||||
shell.request_redraw();
|
||||
shell.capture_event();
|
||||
return;
|
||||
} else {
|
||||
|
|
@ -1746,6 +1747,7 @@ pub fn update<'a, Message: Clone + 'static>(
|
|||
.cursor
|
||||
.select_range(state.cursor.start(value), position);
|
||||
|
||||
shell.request_redraw();
|
||||
shell.capture_event();
|
||||
return;
|
||||
}
|
||||
|
|
@ -2099,6 +2101,7 @@ pub fn update<'a, Message: Clone + 'static>(
|
|||
_ => {}
|
||||
}
|
||||
|
||||
shell.request_redraw();
|
||||
shell.capture_event();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue