fix(input): reset cursor and last click state on unfocus
This commit is contained in:
parent
8badf73383
commit
989fcad99e
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue