]> git.proxmox.com Git - ui/proxmox-yew-widget-toolkit.git/commitdiff
widget: dropdown: make popover behavior manual
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 18 Nov 2024 12:02:34 +0000 (13:02 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 19 Nov 2024 08:29:28 +0000 (09:29 +0100)
otherwise the popover is dismissed by e.g. clicking in the field
when it's editable, which produces an undesired effect.
(It's then "closed" but still visible because of our css classes, and
now our aligning logic is wrong because popovers behave differently when
open vs closed)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/widget/dropdown.rs

index 9300166208700a29d20e443738adb59520d3824e..9f3d927539d06224d9317c782707650e7488bb35 100644 (file)
@@ -446,7 +446,7 @@ impl Component for PwtDropdown {
             .with_child(select)
             .with_child(
                 Container::new()
-                    .attribute("popover", "")
+                    .attribute("popover", "manual")
                     .attribute("tabindex", "-1")
                     .style("overflow", "visible ! important")
                     .class("pwt-dialog")