Toolbar buttons cause unintentional form submissions
dbchristopher opened this issue · 1 comments
dbchristopher commented
I'm not sure if this is a quirk of react, or a quirk of chrome. But when the button type="button"
attribute is omitted, the toolbar buttons are assumed to be submit buttons. So every time a style is toggled, the parent form is submitted. I resolved this locally by adding the prop myself when rendering the component:
<MarkupButton
tag="em"
type="button" />
Just thought I would give you a heads up as a simple default to add to the components to prevent future confusion!
joshfrench commented
Thanks! Just fixed this in v0.3.2
.