Currently SweetAlert seems to attach itself to the body node of the document.
However this means that if you use the JS FullScreen API to full-screen an element (by calling element.requestFullscreen() ) and then attempt to show an alert, the alert will appear behind the full-screen element and cannot be seen.
It probably needs some logic like:
var parentElement = document.fullscreenElement || document.body;
Currently SweetAlert seems to attach itself to the
body
node of the document.However this means that if you use the JS FullScreen API to full-screen an element (by calling
element.requestFullscreen()
) and then attempt to show an alert, the alert will appear behind the full-screen element and cannot be seen.It probably needs some logic like:
var parentElement = document.fullscreenElement || document.body;