Select to view content in your preferred language

Calcite components, removing components from DOM, clearing EventListeners

503
1
Jump to solution
01-22-2024 09:56 AM
ChristopheSuter
Regular Contributor

When removing a calcite-component  from DOM, are the EventListeners cleared also ? Or do we have to manage this ?

0 Kudos
1 Solution

Accepted Solutions
KittyHurley
Esri Contributor

@ChristopheSuter Similar to native elements, any added event listeners would need to be removed when components are removed from the DOM.

View solution in original post

1 Reply
KittyHurley
Esri Contributor

@ChristopheSuter Similar to native elements, any added event listeners would need to be removed when components are removed from the DOM.