]> git.proxmox.com Git - pve-manager-legacy.git/commit
ui: ComboBoxSetStoreNode: don't hide the picker when clicking the toolbar
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 27 Jan 2023 10:14:36 +0000 (11:14 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 31 Jan 2023 09:38:11 +0000 (10:38 +0100)
commit52dfa5df346d9e23ffc74c853b1eba7787171d3d
tree4291bae42263787a202e0d6113d55dda79af8521
parent184b761391fe3d5747b7a0b37f8cddab978539ae
ui: ComboBoxSetStoreNode: don't hide the picker when clicking the toolbar

When clicking the toolbar of the ComboGrid, the combobox loses focus,
and instantly hides the picker.

To prevent that, we keep track of the mousedown event on the toolbar
(which happily comes before the focusLeave event), and prevent the
focusLeave propagation in that case.

Then on mouseup, we focus the combobox again, so that the nexct
focusLeave can trigger again.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/form/ComboBoxSetStoreNode.js