Skip to content

potential bug in selectAllCheckbox #62

@cspence001

Description

@cspence001

I have a layer control tree with selectAllCheckbox set to true for subgroups of child layers. I noticed a bug that could be in part due to my app configuration. All computable reference layers are acknowledged in the tree but the data for each is loaded in separately based on user requests. I noticed it happens that if I select a layer in the tree for data that has not yet been loaded, I get the obvious error Cannot read properties of undefined (reading 'options') - and subsequently after selecting/deselecting the selectAllCheckbox for layers that with data that had been added in and previously had not presented to be a problem that it will only compute one layer at a time - either deselecting one until none, or switching one sole layer on back and forth - with the error of Uncaught TypeError: Cannot read properties of undefined (reading 'parentNode').

Perhaps the solution is that theses children within the selectAllCheckbox subGroups need to be referenced in a separate 'overlayadd' 'overlayremove' function as a group? I do not have an issue with the selectAllCheckbox if the data is all loaded in, it only seems to occur when I have selected a ghost layer (no data underneath) and go on to select/deselect options that are available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions