]> git.proxmox.com Git - pve-manager-legacy.git/commit
ComboGrid: open picker also when focusing an editable field
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 25 Jul 2017 14:26:59 +0000 (16:26 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 26 Jul 2017 13:37:05 +0000 (15:37 +0200)
commit851c032d69ad5ae23725dd1add9e4084ebc12650
tree89115c44ac6c3c6389fa75fa4c90266a52e65cb9
parent9ecabc38e2cd623766681fce0b04a57c35680962
ComboGrid: open picker also when focusing an editable field

ComboBoxes provided by UI frameworks normally show their selection
possibilities once focused, ExtJS does this too but not on editable
(and thus filterable) input fields. Add a logic which allows this too
and streamlines the behavior of ComboGrid/Box like components.

To avoid a glitch, where clicking the "picker trigger" (the down
arrow which normally toggles the selection picker) would first focus
the element - thus expanding it - and only then causing a toggle
which collapses it again, we overwrite the 'Ext.form.trigger.Trigger'
onMouseDown so that we can skip a expansion on this event.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/form/ComboGrid.js