Created attachment 250728 [details]
Comment on attachment 250728 [details]
Maybe we should use "display: none" styling to hide and show rather than DOM manipulation. That’s usually better if you want to preserve a certain ordering of the nodes.
Roger that. Didn't realize that display: none actually removes things from the DOM.
(In reply to comment #3)
> Roger that. Didn't realize that display: none actually removes things from
> the DOM.
It doesn’t remove things from the DOM. It removes them from the render tree, though, which usually accomplishes the same thing.