michelson / dante2

A complete rewrite of dante editor in draft-js
https://michelson.github.io/dante2/
Other
912 stars 121 forks source link

add type="button" to buttons #140

Closed ALEUT closed 5 years ago

ALEUT commented 5 years ago

There were a bug without type="button". If Dante is used inside form, the form was submitted each time button is pressed. Adding type="button" fixed it. Otherwise these buttons were treated as type="submit".

michelson commented 5 years ago

awesome @ALEUT , thanks!