fix: clicking the ExpandIcon of the Combobox does not close the popup window (#247)

This commit is contained in:
luoxiaozero 2024-09-01 23:48:49 +08:00 committed by GitHub
parent ec056a6dec
commit b52f09baa9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;