diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-10-07 19:44:22 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-10-07 19:44:22 +0200 |
commit | 5cfad8d65bad19ab3188d3de190f22ae8cc07fd8 (patch) | |
tree | 0ea6753ac8f9662663594104b42d63e0b3e2b9c0 | |
parent | 90c52a1782ae7727c0a430dcec64d9c1b072e452 (diff) |
luci-base: form.js: treat inactive options as optional
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/form.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index 46f1ff482..d5f9fe3c5 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -834,7 +834,7 @@ var CBIAbstractValue = CBINode.extend({ return Promise.resolve(this.write(section_id, fval)); } else { - if (this.rmempty || this.optional) { + if (!active || this.rmempty || this.optional) { return Promise.resolve(this.remove(section_id)); } else if (!isEqual(cval, fval)) { |