-
-
Notifications
You must be signed in to change notification settings - Fork 118
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 'forEach' of undefined #237
Comments
I do something similar in https://github.com/adamghill/django-unicorn/blob/master/example/unicorn/templates/unicorn/nested/row.html#L28. Can you replicate the error with my example or otherwise push an example to another repo so I can see what is going on? Thanks. |
Closing this for now because I can't replicate, but feel free to re-open if you can replicate in my example project. Thanks! |
Hello, I've recently ran into this issue and created a simple project to reproduce this:
I have a small patch that will at least prevent throwing errors but it just checks for existence of eventType in component.actionEvents before doing the foreach. This appears to just work and solve the problem at the surface but not familiar enough with the code base to know if this is the correct fix or if it should be done elsewhere. Happy to spend some time looking into this more because I am currently accessing Django Unicorn for an upcoming project. |
@clangley Thank you so much for the example code and fix! I tested it out and it looks great. I'm merging it into |
I tried to use
unicorn:click.discard="cancel"
in child component.The text was updated successfully, but these errors were encountered: