Tiptap: Enter key anywhere in the form focuses on tiptap

Created on 28 Aug 2019  路  3Comments  路  Source: ueberdosis/tiptap

Describe the bug
I have several forms that utilize tiptap. In each of the forms when I hit the "enter" key it focuses on tiptap. I have no @key events. Nada.

Steps to Reproduce / Codesandbox Example
Steps to reproduce the behavior:

  1. Create a form which includes an editor
  2. Focus on any other form element (text input for sure)
  3. Press enter

Expected behavior
Not focus on tiptap

Environment

  • OS: OSX
  • Browser Chrome
  • Version 76
  • Mobile / Desktop: Desktop

Additional Info
It does appear that when I remove all the buttons from the editor-menu-bar that it no longer happen.

bug

Most helpful comment

If anyone comes across this problem, in my case it was due to the commands in the menu-bar being button elements without type="button". Adding type fixed it for me.

All 3 comments

Ok, changing the

@dolbex

you changed them into what?

If anyone comes across this problem, in my case it was due to the commands in the menu-bar being button elements without type="button". Adding type fixed it for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

afwn90cj93201nixr2e1re picture afwn90cj93201nixr2e1re  路  3Comments

chrisjbrown picture chrisjbrown  路  3Comments

jetacpp picture jetacpp  路  3Comments

santicros picture santicros  路  3Comments

ageeye-cn picture ageeye-cn  路  3Comments