sammy icon indicating copy to clipboard operation
sammy copied to clipboard

Sammy reload page on form submit (only with Jquery 2.1.0)

Open nick1one opened this issue 10 years ago • 1 comments

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.

nick1one avatar Apr 07 '14 06:04 nick1one

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....

dan753722 avatar Jul 26 '14 14:07 dan753722