From 7d1431f057d16909d348a03cf1c1a875ddad8abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Tue, 10 Oct 2023 10:26:09 +0200 Subject: [PATCH] Fix notification on child value changed --- src/layertree/Controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layertree/Controller.js b/src/layertree/Controller.js index 7ed7647de1f6..c8fb71dad724 100644 --- a/src/layertree/Controller.js +++ b/src/layertree/Controller.js @@ -314,7 +314,7 @@ LayertreeController.prototype.getCalculateState = function () { /** @type {string} */ let previousChildState; this.children.some((child) => { - childState = child.getCalculateState(); + childState = child.getState(); if (previousChildState) { if (previousChildState !== childState) { childState = 'indeterminate';