summaryrefslogtreecommitdiffstats
path: root/widget/src/combo_box.rs
diff options
context:
space:
mode:
Diffstat (limited to 'widget/src/combo_box.rs')
-rw-r--r--widget/src/combo_box.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/widget/src/combo_box.rs b/widget/src/combo_box.rs
index 500d2bec..d7c7c922 100644
--- a/widget/src/combo_box.rs
+++ b/widget/src/combo_box.rs
@@ -564,6 +564,7 @@ where
}
}
}
+ shell.update_caret_info(local_shell.caret_info());
// Then finally react to them here
for message in local_messages {
@@ -742,6 +743,8 @@ where
published_message_to_shell = true;
// Unfocus the input
+ let mut local_messages = Vec::new();
+ let mut local_shell = Shell::new(&mut local_messages);
self.text_input.update(
&mut tree.children[0],
Event::Mouse(mouse::Event::ButtonPressed(
@@ -751,9 +754,10 @@ where
mouse::Cursor::Unavailable,
renderer,
clipboard,
- &mut Shell::new(&mut vec![]),
+ &mut local_shell,
viewport,
);
+ shell.update_caret_info(local_shell.caret_info());
}
});