mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-06-03 04:15:02 +00:00
combobox grid: avoid needing two clicks after re-selecting an item
'picker.hide()' hides the picker, but does not do everything to properly keep track of the picker state in the combobox class. This lead to a bug when we reselected an entry, we had to click the picker again twice to open it again. Use the 'collapse' method of the combobox instead, which does the necessary book-keeping. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
c071b0c302
commit
4a819c891e
@ -290,7 +290,7 @@ Ext.define('Proxmox.form.ComboGrid', {
|
||||
if (!me.multiSelect) {
|
||||
picker.on('itemclick', function(sm, record) {
|
||||
if (picker.getSelection()[0] === record) {
|
||||
picker.hide();
|
||||
me.collapse();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user