Cannot input text after closing a confirm dialog by Esc key

Viewed 466

After closing a confirm dialog on a page by Esc key, I cannot input any text into any text field on the page. How can I fix it?

This small html should be able to reproduce the problem easily.

<html>
<head></head>
<body>
<input type="text">
<script>
    window.confirm('hogehoge')
</script>
</body>
</html>

Repro Steps:

  1. Open this html to open a confirm dialog above the page.
  2. Hit Esc key on keyboard to close the dialog.
  3. Click on the text-input field on the page to try input something.

Result:

Caret doesn't show up, and cannot input anything.

Expected:

Can input text into the text-input field.

Notes:

  • This repros on Chrome and Edge(chromium).
  • Not repro on FireFox.
  • OS: Windows10
  • Once the focus goes out of the window, this problem disappears.
1 Answers
Related