Closed zcuric closed 3 years ago
After checking this out of my working environment in an isolated sandbox, this seems to be an issue with my environment.
I am having the same issue. @zcuric What was the issue with your environment that caused it?
I am having the same issue. @zcuric What was the issue with your environment that caused it?
In my case I was overusing the .focus() in my menu bar items.
In my case I was overusing the .focus() in my menu bar items.
I had the same problem. I mistakenly added a function invocation instead of a function body to the onClick
props.
It was like:
<Button
onClick={editor.chain().focus().toggleBulletList().run()}
...
/>
But it should be like this:
<Button
onClick={() => editor.chain().focus().toggleBulletList().run()}
...
/>
Ctrl + Shift + F
on VS Code to search all focus()
usage and check whether you are calling focus()
on every re-render.
Description When adding link or image through custom form menu, cannot switch focus to the input field from editor. Focus is stuck on editor, which wasn't the case in tiptap@1
Steps to reproduce the bug
this.$refs.input.focus
Expected behavior Focus should be switched to input
Screenshot, video, or GIF
Environment?