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

Validation not work for pages loaded by Barba.js #164

Open
gvojtko opened this issue Mar 2, 2021 · 1 comment
Open

Validation not work for pages loaded by Barba.js #164

gvojtko opened this issue Mar 2, 2021 · 1 comment
Labels

Comments

@gvojtko
Copy link

gvojtko commented Mar 2, 2021

I use Barba.js for dynamic page transitions. Validation does not work for forms that are loaded dynamically. The model is generated correctly, but the validator is not initialized. Is it possible to initialize the validator manually after a completely loaded page?

@gvojtko
Copy link
Author

gvojtko commented Mar 3, 2021

Solved! I created a callback js method for each form in twig template, which I later call in barba.js.

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

No branches or pull requests

2 participants