comics icon indicating copy to clipboard operation
comics copied to clipboard

Dialog (open via cheat code) is still in the DOM after closing

Open jeffque opened this issue 7 months ago • 0 comments

When activating the cheat, it opens a dialog injecting this DOM node (tested in https://swordscomic.com/):

<dialog open="">
    <img class="dialog-image" src="/media/Travel.png">
</dialog>

After closing, instead of removing completely from the DOM, it stays, but hidden:

<dialog class="">
    <img class="dialog-image" src="/media/Travel.png">
</dialog>

It changes some other attributes, but it was fast and I couldn't follow all the changes.

The node did not need to survive after being disposed. Adding many cheat will create many DOM nodes that are not useful anymore.

jeffque avatar Jun 06 '25 14:06 jeffque