]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
ComboGrid: open picker also when focusing an editable field
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 8 Jan 2018 12:03:00 +0000 (13:03 +0100)
committerDominik Csapak <d.csapak@proxmox.com>
Thu, 11 Jan 2018 13:48:13 +0000 (14:48 +0100)
commit39d9914990920758306edd2c9804b034eaa74e41
treee309566530e38aae555af57d30aec1597b7cd666
parent3ab80554c66047fe7c1ec654030cafeb4e80d039
ComboGrid: open picker also when focusing an editable field

port commit
851c032d69ad5ae23725dd1add9e4084ebc12650
from pve-manager

commit message:

    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>
form/ComboGrid.js