-
Notifications
You must be signed in to change notification settings - Fork 532
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
Uncaught TypeError: Cannot read property 'validateAfterLoad' of undefined #91
Comments
Thank you @player1537. Could you make a PR with this fix? I prefer the prop's default value solution. |
Sure, I will make a PR when I get home later today. I'm having some trouble downloading one the packages in |
OK, I will check this kazupon module, maybe it is an unused module |
Fixed. Will be released in v0.6.0 |
Thank you! Sorry I didn't get to it in time. |
No problem :) |
Released |
I get this error when I try to use the VueFormGenerator component without passing in an options property. For example,
The bug is in the
watch
method insrc/formGenerator.vue
, where the library does not check ifthis.options
is truthy before checking ifthis.options.validateAfterLoad
is true. Reference.There are two potential solutions to this problem: either set default values for the
options
property or add an additional check forthis.options
before accessthis.options.validateAfterLoad
.To set a default value, the library could define its props as:
To just add the extra check, the code would need to change from:
to:
so that it matches the line later in the same file: Reference:
The text was updated successfully, but these errors were encountered: