fix: request redraw in text input when needed

This commit is contained in:
Hojjat 2026-08-04 13:58:47 -06:00 • committed by Ashley Wulber
parent 5fd1ca4220
commit 31ec448bf0

View file

@ -1680,6 +1680,7 @@ pub fn update<'a, Message: Clone + 'static>(
state.last_click = Some(click); state.last_click = Some(click);
shell.request_redraw();
shell.capture_event(); shell.capture_event();
return; return;
} else { } else {
@ -1746,6 +1747,7 @@ pub fn update<'a, Message: Clone + 'static>(
.cursor .cursor
.select_range(state.cursor.start(value), position); .select_range(state.cursor.start(value), position);
shell.request_redraw();
shell.capture_event(); shell.capture_event();
return; return;
} }
@ -2099,6 +2101,7 @@ pub fn update<'a, Message: Clone + 'static>(
_ => {} _ => {}
} }
shell.request_redraw();
shell.capture_event(); shell.capture_event();
return; return;
} }