-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
netteForms.js: Stack overflow and Too much recursions on CheckboxList #143
Comments
ping @dg |
IE console throws "Nedostatek místa v zásobníku" on this line. |
@dg This seems important. @radekdostal Do you know how to fix this? |
Nette.expandRuleArgument is the problematic function. If I replace its implementation with version from 2.3, then everything is OK and JavaScript validation passes. |
Just delete Nette.validateControl() call on this line and the problem is solved. But I don't know, if this change doesn't affect anything else. I use netteForms.js 2.4 on many projects without problems, I don't know, why on CheckboxLists is this deadlock: validateControl() -> validateRule() -> expandRuleArguments() -> validateControl()... |
Thanks for accurate issue report. Unfortunately I don't have time to solve it now… |
This commit 8f27363 changed the original behavior. |
Description
I have form component with four CheckboxLists. There are set own validation rules (PHP, JavaScript), but if these rules are removed, error is still thrown. The entire form contains only four checkboxes and a submit button. The form is manually rendered and Firefox Console is blank. If I leave the tab and come back, console contains "too much recursion" and "stack overflow" on this line and this line. Javascript validation during form submitting fails, own validation rules are not called.
When I use netteForms.js version 2.3.10, everything is ok and JavaScript validation passes.
data-nette-rules attributes are the same for Nette 2.3.10 and Nette 2.4.0 (20170119).
Steps To Reproduce
The text was updated successfully, but these errors were encountered: