verbum
verbum copied to clipboard
Verbun inside react hook form causes any action to submit the form
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:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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.