fix(input): reset cursor and last click state on unfocus

This commit is contained in:
Ashley Wulber 2025-08-11 22:40:10 -04:00 committed by Michael Murphy
parent 8badf73383
commit 989fcad99e

View file

@ -2654,6 +2654,8 @@ impl State {
/// Unfocuses the [`TextInput`].
#[cold]
pub(super) fn unfocus(&mut self) {
self.move_cursor_to_front();
self.last_click = None;
self.is_focused = None;
self.dragging_state = None;
self.is_pasting = None;