From b52f09baa9b0e0bfed8b929c5cc78787f63287d2 Mon Sep 17 00:00:00 2001 From: luoxiaozero <48741584+luoxiaozero@users.noreply.github.com> Date: Sun, 1 Sep 2024 23:48:49 +0800 Subject: [PATCH] fix: clicking the ExpandIcon of the Combobox does not close the popup window (#247) --- thaw/src/combobox/combobox.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/thaw/src/combobox/combobox.rs b/thaw/src/combobox/combobox.rs index 9015667..7701b74 100644 --- a/thaw/src/combobox/combobox.rs +++ b/thaw/src/combobox/combobox.rs @@ -234,6 +234,7 @@ pub fn Combobox( style=move || { is_show_clear_icon.get().then(|| "display: none").unwrap_or_default() } + on:mousedown=|e| e.prevent_default() on:click=move |_| { if disabled.get_untracked() { return;