Open Mehgugs opened 4 months ago
Thanks for the report!
I suppose if elm-watch uses a <dialog>
too, maybe it wins over your own dialogs?
It seems like <dialog>
s opened with .show()
will use a stacking context that respects z-index
etc., but <dialog>
s opened with .showModal()
will stack in order that they were opened. And a <dialog>
opened with .showModal()
will appear above any opened with .show()
from what I can tell. https://codepen.io/ptrfrncsmrph-the-vuer/pen/gOJPPor
So if elm-watch uses .showModal()
, it would probably win would be my guess 🤷
Cool, thanks for making that demo!
Note to self: Docs here: https://developer.mozilla.org/en-US/docs/Glossary/Top_layer
container.popover = "manual"; container.showPopover()
seems to do the trick, and to be the easiest solution.
Recently I've transitioned my modals to use native
Elm's debugger can be popped out to a separate window which solves this problem, perhaps something similar could be done with elm-watch?