My tiptap bubble_menu works, but it also does a form submission when the menu item is clicked

Viewed 331

For example, I was using this:

<button  onclick="editor.chain().focus().toggleBold().run()">

But I got the solution from the kind folks on the discord server.

1 Answers

For the menu item, specify type=button (otherwise browser might think it's a submit button type)

<button type=button  onclick="editor.chain().focus().toggleBold().run()">
Related