From 3d606a6909510cd1bc04ff08f525fc954041ccbf Mon Sep 17 00:00:00 2001 From: Floyd Wang Date: Mon, 3 Nov 2025 16:24:54 +0800 Subject: [PATCH] select: Avoid reopen menu when clearing selection (#1484) --- crates/ui/src/select.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ui/src/select.rs b/crates/ui/src/select.rs index d3d8abfc..4646e71c 100644 --- a/crates/ui/src/select.rs +++ b/crates/ui/src/select.rs @@ -682,6 +682,7 @@ where } fn clean(&mut self, _: &ClickEvent, window: &mut Window, cx: &mut Context) { + cx.stop_propagation(); self.set_selected_index(None, window, cx); cx.emit(SelectEvent::Confirm(None)); }