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:
Jo-Philipp Wich 2020-01-15 18:52:16 +01:00
parent 335692a738
commit e01ef08442

View file

@ -584,6 +584,7 @@ var CBIAbstractSection = CBINode.extend({
if (isActive != isSatisified) {
o.setActive(sid, !isActive);
isActive = !isActive;
changed = true;
}