Skip to content

Setting a style after applying a filter can result in an error #432

@wiegerhofstra

Description

@wiegerhofstra

If you apply a filter to a feature, and then use styling on any of the features on that layer, you can get the following error:

TypeError: Cannot read property 'appendChild' of null
    at Object.toFront (csWeb-dep.js:379)
    at e._bringToFront (csWeb-dep.js:382)
    at e.bringToFront (csWeb-dep.js:381)
    at LeafletRenderer.updateFeature (csComp.js:35927)
    at csComp.js:21028
    at Array.forEach (<anonymous>)
    at LayerService.setStyle (csComp.js:21025)
    at LayerService.toggleStyle (csComp.js:21043)
    at fn (eval at compile (csWeb-dep.js:264), <anonymous>:4:339)
    at e (csWeb-dep.js:309)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions