You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please add role="button" to toolbar buttons. Otherwise they are by default treated as submit buttons which causes weird behaviour when SimpleMDE is inside a form with other inputs. Instead of submitting the form when I press <enter>, first button (SimpleMDE's bold button) is pressed.
I am sorry I tested your release and this bug and it is still ocurring. I googled again and tested it, and the correct attribute to make it work is type="button" not role.
I'm submitting a...
Reproduction steps
Please add role="button" to toolbar buttons. Otherwise they are by default treated as submit buttons which causes weird behaviour when SimpleMDE is inside a form with other inputs. Instead of submitting the form when I press
<enter>
, first button (SimpleMDE's bold button) is pressed.See this fiddle: https://jsfiddle.net/ge9hfkaL/2/
Version information
Browser type and version: all?
EasyMDE version: all?
The text was updated successfully, but these errors were encountered: