Modal exit animation debugging

If I click outside this
<dialog>
and then press
Esc
, it shifts to the top of the screen while playing the exit animation. If I press
Esc
while still focused within the
<dialog>
it stays in place. Has anyone encountered this / found a solution? Codepen link: https://codepen.io/ptrfrncsmrph-the-vuer/pen/QWRqJPW
Was this page helpful?