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

meteor loadModules never fires 'validatorsLoaded' event #587

Open
steveinatorx opened this issue May 1, 2017 · 1 comment
Open

meteor loadModules never fires 'validatorsLoaded' event #587

steveinatorx opened this issue May 1, 2017 · 1 comment

Comments

@steveinatorx
Copy link

steveinatorx commented May 1, 2017

on trying to load the toggleDisabled module from a meteor template im not seeing the 'validatorsLoaded' or 'formValidationSetup' events ever fire - thus the module doesnt run through its implementation block. The main validation functions all work fine - just cant get modules to fire - it is loading and executing the toggleDisabled.js script (i placed a console.log inside and it does output).

$.formUtils.loadModules('toggleDisabled','/scripts/')
  console.log('in form validate email');
$.validate({ form: "#verifyEmail",
  modules : 'toggleDisabled',
  borderColorOnError: "red" 
  });

Meteor has some wonky ways that it deals with js contexts that im wondering might be interfering with the way that jq-form-validator tries to determine that the modules are in fact loaded (i also cant seem to get the onModulesLoaded to fire either).

So in lieu of troubleshooting $.formUtils.loadModules in meteor (which is probably going to be a rat hole)- is there a way to include the entire module set in a bundle by rebuilding a local production distribution with grunt that maybe ive missed?

@victorjonsson
Copy link
Owner

I think this may have been resolved in #479. Could you please try the latest published version 2.3.61 and let me know how it works out for you.

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

No branches or pull requests

2 participants