-
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
mage.validation widget errorPlacement function not inside options so never gets loaded #39381
Comments
Hi @phes71. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
this will fix it 95fd74f |
Issue: Confirmed |
Preconditions and environment
The issues is caused because of incorrect declaration of widget options in product/view/validation.js
errorPlacement function should be inside options.
Steps to reproduce
error on grouped product pages click add to cart without any options selected, and the validation error message is displayed on every option instead of inside div with id #validation-message-box
Expected result
validation error should be in div id #validation-message-box
Actual result
validation error shown in every grouped option qty
Additional information
fix by moving errorPlacement function inside options as below
options: {
radioCheckboxClosest: 'ul, ol',
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: