]> git.proxmox.com Git - pve-manager.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)
commit7528c2572e405b841fc182e8b3eda90effe4d4cb
tree64abbf4ce80623781108d88ef027d63531067414
parenta2ff227eb57b961dbb4d99699f25d186f57af53d
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