Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Only run Component initialization functions once
If the Component gets removed from the DOM and then re-added, it already has contents, and we don't need to create them again. It also has already had on_ready called, so that doesn't need to happen again either. This fix stops Components duplicating their content elements and listener callbacks whenever they're moved around the document.
- Loading branch information