-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
product view validation.js undefined this.radioCheckboxClosest #37713
Comments
Hi @sheepfy. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Also after fixing this issue, when clicking "add to cart" button first time, highlight errors will appear, which is good. But if you click second time the "add to cart" button, the error option will get removed. |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @sheepfy, Thanks for the report and collaboration! We have tried to reproduce the issue in the 2.4-develop branch and it seems the issue is reproducible as mentioned in the description. Please have a look at the below screenshot for reference: Hence confirming the issue. Thanks |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-9121 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Hotel. Thank you for verifying the issue. |
https://github.com/magento/magento2/blame/2abc466714ec397efbe865ac1f10b7141aa586f3/app/code/Magento/Catalog/view/frontend/web/product/view/validation.js#L45
This line will be always undefined since the jquery.validate.js got updated to the latest version.
jquery.validate.js is now doing:
this.settings.errorPlacement.call( this, place, $( element ) );
instead of:
this.settings.errorPlacement( place, $( element ) );
Therefor in product/view/validation.js "this" variable is changed and this.radioCheckboxClosest is not defined.
It needs to be updated to "this.settings.radioCheckboxClosest"
The text was updated successfully, but these errors were encountered: