question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Forgo removes DOM elements that were appended using DOM APIs

See original GitHub issue

Reproduction

If 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:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jeswincommented, Mar 5, 2022

I’ve taken another shot at fixing #33. Hope this is unblocked now.

1reaction
spiffytechcommented, Mar 2, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found