]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
form: combo grid: fix selection after filtering
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 28 Mar 2022 13:53:45 +0000 (15:53 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 29 Mar 2022 15:49:15 +0000 (17:49 +0200)
commit01a79a97814756d4d7c57efc1f88f1bf3eb8bf9d
tree1bb4e7e0b39cdcf60dad443c162be1ae6328a22a
parent04070ce5b1c96f079d52cc5f1f2bc325c4701515
form: combo grid: fix selection after filtering

firing 'refresh' in 'clearLocalFilter' was wrong, since that triggers
too often, for example when selecting an entry (since the field lost
focus). This lead to the picker refreshing and not registering the
click and thus not selecting the desired entry.

Instead refresh the view when we really need it: when the picker is shown.
The filter is already gone, but the picker grid does not know this yet,
so we fire the event then.

Fixes: 7e47328 ("Combogrid: clear filter on blur")
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/form/ComboGrid.js