verbum icon indicating copy to clipboard operation
verbum copied to clipboard

Verbun inside react hook form causes any action to submit the form

Open geekyayush opened this issue 1 year ago • 0 comments

Describe the bug I am using react hook form in next.js. I have verbum component inside the form tag. Whenever I click on any editor button e.g. underline, heading etc. It causes the react hook form to submit. Ideally reacct hook form only submits when a button with type submit has been clicked. Does this mean that every button or option inside verbum/lexical editor has type submit?

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

geekyayush avatar Dec 14 '23 09:12 geekyayush