Closed cuberoot closed 4 years ago
When a web component that renders into a container is unmounted, it should delete the div that it creates.
container
It leaves the div there. So, if you mount, unmount, and then remount a component, you will end up with an extra div.
This occurs when a web component is removed from and then re-added to the DOM.
Expected Behaviour
When a web component that renders into a
container
is unmounted, it should delete the div that it creates.Actual Behaviour
It leaves the div there. So, if you mount, unmount, and then remount a component, you will end up with an extra div.
Reproduce Scenario (including but not limited to)
This occurs when a web component is removed from and then re-added to the DOM.