Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form POST only submitting after second submit #305

Open
skuzzlebud opened this issue Oct 2, 2016 · 2 comments
Open

Form POST only submitting after second submit #305

skuzzlebud opened this issue Oct 2, 2016 · 2 comments

Comments

@skuzzlebud
Copy link

Im currently trying to integrate Smoothstate.js into a Django Project. I'm using the js code snippet from the smoothstate.js options example in the readme.
When I click on a link Smoothstate.js works like expected. But when I submit the form it doesn't send a post and just triggers the animations. When I click it a second time it sends the POST and works like it should.
It seems like this problem is related to #issue189 and #issue 231
When I point the POST action to a different URI it works fine but when I point it to the same URI the POST will not be sent on the first submit. On the second submit it works.

You can have a look at my code on Stackoverflow

@keefyhub
Copy link

Hi @skuzzlebud

I had the same issue a few days ago, I solved it by blacklisting the form with a class.

$('#main').smoothState({ blacklist: '.no-smoothState' });

<form class="no-smoothState">
  ...
</form>

I couldnt get it working with the forms option, but blacklisting worked

@mgernand
Copy link

Any news on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants