ulion / jsonform

Build forms from JSON Schema. Easily template-able. Compatible with Twitter Bootstrap out of the box.
http://ulion.github.io/jsonform/playground/
MIT License
49 stars 27 forks source link

Fixed bug with generic (non-submit) buttons. #37

Closed April-Martin closed 7 years ago

April-Martin commented 7 years ago

If buttons aren't given an explicit type,

supplies them with a default 'type="submit"'. The HTML generated for basic buttons didn't have a type, so they were linked to the "onSubmit" function. This made it impossible to create a simple cancel button.

I added 'type="button"' to the HTML for basic buttons.

ulion commented 7 years ago

thank you for the PR.