]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
ComboGrid: fix validation for !allowBlank disabled fields
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 3 Feb 2020 14:14:42 +0000 (15:14 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 5 Feb 2020 07:40:45 +0000 (08:40 +0100)
commit6f5e0ea655dfe8af0bc09727d423c85014f1f98f
treefdce2603caaeb05f8cc056a0a77c82897f734658
parent97cdcd2836b9250685aeef50731d76615998db58
ComboGrid: fix validation for !allowBlank disabled fields

Used in "Add USB to VM" dialog for example.

This was broken before 15206214d9 "ComboGrid: fix on-load validation for blank
values" (only the one you enabled first was validated, the other always showed
as valid), and afterwards too, but in a different way (both are now immediately
marked invalid until you select and unselect them) - which is how I noticed.

With this the validation now works correctly.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
form/ComboGrid.js