mb21 / JSONedit

User friendly, visual JSON editor built as an Angular 1 directive.
MIT License
566 stars 160 forks source link

Added type 'button' to all buttons #39

Closed pixel2 closed 8 years ago

pixel2 commented 8 years ago

I added type="button" to all buttons. Not having a type is equal to type="submit" so it was submitting my form every time I tried to modify the json object.

A button element with no type attribute specified represents the same thing as a button element with its type attribute set to "submit" https://www.w3.org/TR/html-markup/button.html

mb21 commented 8 years ago

thanks!