diff --git a/CHANGELOG.md b/CHANGELOG.md index e8259476bc..fb75ce0b23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Draft - Added missing gift certificate translation +- Fix registerValidation function to validate on writeReview-form email field [#1585](https://github.com/bigcommerce/cornerstone/pull/1585) ## 4.2.0 (2019-10-02) - Fixes and some additions to our Google Structured Data schema for the product page template [#1577](https://github.com/bigcommerce/cornerstone/pull/1577) diff --git a/assets/js/theme/product/reviews.js b/assets/js/theme/product/reviews.js index 9447579d40..3b52786718 100644 --- a/assets/js/theme/product/reviews.js +++ b/assets/js/theme/product/reviews.js @@ -72,7 +72,7 @@ export default class { validate: 'presence', errorMessage: this.context.reviewComment, }, { - selector: '[name="email"]', + selector: '.writeReview-form [name="email"]', validate: (cb, val) => { const result = forms.email(val); cb(result);