luci-base: form.js: fix immediate validation of activated options
When form options are activated because their dependencies are satisified, ensure that an immediate validation is triggered to highlight potential errors without having the user to activate another form control first. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
30cba86db5
commit
77c2998f32
1 changed files with 1 additions and 0 deletions
|
@ -584,6 +584,7 @@ var CBIAbstractSection = CBINode.extend({
|
|||
|
||||
if (isActive != isSatisified) {
|
||||
o.setActive(sid, !isActive);
|
||||
isActive = !isActive;
|
||||
changed = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue