From d0da8a91f0c8b2b4ca40a6f589213b5c6adc1daf Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Tue, 15 Dec 2020 18:34:21 +0100 Subject: [PATCH] Fix hiding dependent nodes in form builder forms --- .../WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.js | 2 +- .../WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.js index 6e9780f718..67192de4e2 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.js @@ -177,7 +177,7 @@ define(["require", "exports", "tslib", "../../../../Dom/Util", "../../../../Even let dependenciesMet = true; nodeDependencies.forEach((dependency) => { if (!dependency.checkDependency()) { - dependentNode.style.display = "none"; + this._hide(dependentNode); dependenciesMet = false; } }); diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.ts index 1624b8bf7c..6933eee9cc 100644 --- a/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.ts +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Field/Dependency/Manager.ts @@ -213,7 +213,7 @@ const Manager = { let dependenciesMet = true; nodeDependencies.forEach((dependency) => { if (!dependency.checkDependency()) { - dependentNode.style.display = "none"; + this._hide(dependentNode); dependenciesMet = false; } }); -- 2.20.1