Forgo removes DOM elements that were appended using DOM APIs
See original GitHub issueIf I capture the ref
for an element and mess with it using the DOM APIs, the next time the element rerenders Forgo removes my manually-added elements.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Element.remove() - Web APIs - MDN Web Docs
The Element.remove() method removes the element from the DOM.
Read more >Comparing Methods for Appending and Inserting ... - CSS-Tricks
The append method only allows us to append either a node or plain text to an element in the DOM. But some other...
Read more >How to detect element being added/removed from dom ...
type === 'childList') { // check if anything was removed and if the specific element we were looking for was removed if (mutation.removedNodes.length...
Read more >How To Make Changes to the DOM - DigitalOcean
In this tutorial, we will go over how to create new nodes and insert them into the DOM, replace existing nodes, and remove...
Read more >You Might Not Need jQuery
Examples of how to do common event, element, ajax and utility operations with plain javascript.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve taken another shot at fixing #33. Hope this is unblocked now.
Thanks for the explanation, that’ll help.
It looks like #33 (key reordering) touches some of the same spots in code that this change will, so I’ll hold off on implementing until #33 is wrapped up.