Skip to content
Discussion options

You must be logged in to vote

Hi, sorry I didn't notice this earlier ☹️ as I've explained on Nette forum, Naja since 3.2 listens for the form's submit event, same as netteForms. If the netteForms script is initialized before Naja, it validates the form first but then hands it over to Naja which runs the validation once again.

I've submitted a pull request that should fix this upstream: nette/forms#342

In the meantime, one way around this issue is to disable the automatic init-on-load behaviour of netteForms by invoking the following script before loading netteForms.js:

window.Nette.noInit = true;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jiripudil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants