Closed wangfulong closed 4 months ago
We are seeing this issue any time the input is defocused or unmounted through any means other than pressing enter to complete the transaction.
This is a Chrome bug. It should be fixed in version 128. You may be able to work around it by removing focus from the editor before removing it from the DOM.
~This issue is not fixed with the latest version of chrome.~
Edit. nvm, the latest version is v126
Describe the issue
When pressing Esc to close a dialog, if the editor is focused, all external input fields become uneditable
Steps to Reproduce:
I fixed this problem using the following method.
However, with the same focus issue in Next.js, when I focus on the editor and directly click the button to trigger router.push, the input fields on the redirected page also become uneditable.
So I had to switch to using the Next.js Link component, which allows the editor to lose focus properly when clicked.
Browser and platform
No response
Reproduction link
No response