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>
(cherry picked from commit 77c2998f32
)
This commit is contained in:
parent
335692a738
commit
e01ef08442
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