sammy
sammy copied to clipboard
Sammy reload page on form submit (only with Jquery 2.1.0)
Sammyjs 0.7.4 with Jquery 2.1.0 has stopped catching "submit" event on forms. Now it reloads whole page after pressing "submit" button.
I am using Sammyjs 0.7.4 with jQuery 2.1.0 and KO.
I find that Sammyjs captures the form submit event, and then automatically amend location.href with the form data, it doesn't seem to stop form submission event by default.
e.g. if I am submit a form on page myweb.com/form
after clicking on submit, I get myweb.com/form_field1=text&form_field2=text
Now I have to remove all form submission and using a click event on buttons now....