Skip to content

Commit

Permalink
Fix notification on child value changed
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Oct 10, 2023
1 parent 9f9b247 commit 7d1431f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layertree/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 7d1431f

Please sign in to comment.