Merge pull request #4531 from oldium/add-widget-changed

luci-base: Fix using isActive in widget-change notification.
This commit is contained in:
Jo-Philipp Wich 2020-10-30 21:29:38 +01:00 committed by GitHub
commit 5a485f8c68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3351,10 +3351,10 @@ var CBIValue = CBIAbstractValue.extend(/** @lends LuCI.form.Value.prototype */ {
optionEl.classList.add('hidden'); optionEl.classList.add('hidden');
optionEl.addEventListener('widget-change', optionEl.addEventListener('widget-change',
L.bind(this.handleValueChange, this, section_id, {})); L.bind(this.map.checkDepends, this.map));
optionEl.addEventListener('widget-change', optionEl.addEventListener('widget-change',
L.bind(this.map.checkDepends, this.map)); L.bind(this.handleValueChange, this, section_id, {}));
dom.bindClassInstance(optionEl, this); dom.bindClassInstance(optionEl, this);