adobe / react-webcomponent

This projects automates the wrapping of a React component in a CustomElement.
Apache License 2.0
105 stars 19 forks source link

Unmounted component does not delete div #11

Closed cuberoot closed 4 years ago

cuberoot commented 5 years ago

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.