mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-13 19:34:21 +00:00
Do not disable a invalid previous tab, as this make the tab fields valid
disable_at() iterates over all the fields of the previously selected tab and disables them however disabling an input field makes it valid for validation purposes. I can't see a reason why disabling the tab fields is needed, since the tab already hidden and after testing, it seems safe to remove this call this fix a problem when going back and forth in the wizard would make some fields uneditable for the wrong reason
This commit is contained in:
parent
58e1cdc0a6
commit
3c46a9a776
@ -156,10 +156,6 @@ Ext.define('PVE.window.Wizard', {
|
||||
me.down('#submit').setDisabled(!valid);
|
||||
me.down('#back').setDisabled(tp.items.indexOf(newcard) == 0);
|
||||
|
||||
if (oldcard && !check_card(oldcard)) {
|
||||
disable_at(oldcard);
|
||||
}
|
||||
|
||||
var next = tp.items.indexOf(newcard) + 1;
|
||||
var ntab = tp.items.getAt(next);
|
||||
if (valid && ntab && !newcard.onSubmit) {
|
||||
|
Loading…
Reference in New Issue
Block a user