You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you try to type the text for the first time, it will re-render and defocus from the input box.
So you need to select the input box and type again (it's annoying)
My workaround is force re-rendering for the first load. Is there another solution to fix this problem ??
I also ran into this problem. It seems to be related to Chrome/Chromium, I haven't seen the problem in Firefox or Safari. use-editable already seems to have a workaround for this, see the code.
Adding tabIndex={-1} may be needed for the workaround to function, see BugEditor.tsx:21 in the updated code sandbox.
When you try to type the text for the first time, it will re-render and defocus from the input box.
So you need to select the input box and type again (it's annoying)
My workaround is force re-rendering for the first load. Is there another solution to fix this problem ??
Here is an example: code sandbox.
Environments
The text was updated successfully, but these errors were encountered: