]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
combo grid: load: rework auto-selection and validity logic
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Jun 2021 16:03:25 +0000 (18:03 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 7 Jun 2021 16:10:15 +0000 (18:10 +0200)
commit142d5d2cdf272af7e7d5f8dfb7088643437c164e
treedbf6c6a310f3422fc77f1c35931005a2748607ee
parent674895d354fda6cfa9b0cd7d59d4e3a01fa7dadf
combo grid: load: rework auto-selection and validity logic

We do not want to trigger an autoSelect if there's a value set, even
if it isn't found in the store, as that hides the fact that an (now)
invalid valid is configured from the user, which can be confusing if
something is not working, as when editing an object it seems like a
valid value is selected.

Further, if a value is set we mark the field as invalid from the
start, at least if it's neither disabled nor allowed to have a
value which is does not exists in the backing store.

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