diff --git a/CHANGELOG.md b/CHANGELOG.md index a28a1435bb..fdaf1f392a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## Draft +- Remove Compare Form. [#2162](https://github.com/bigcommerce/cornerstone/pull/2162) - Fixed password complexity error not displaying the complexity rules set in the store settings [#2117](https://github.com/bigcommerce/cornerstone/pull/2117) - Translation updates February 2022. [#2177](https://github.com/bigcommerce/cornerstone/pull/2177) - Cornerstone performance optimizations: blocking scripts delaying DomContentLoaded. [#2158](https://github.com/bigcommerce/cornerstone/pull/2158) diff --git a/assets/js/theme/global/compare-products.js b/assets/js/theme/global/compare-products.js index 2c47789e64..eb9b52fc3e 100644 --- a/assets/js/theme/global/compare-products.js +++ b/assets/js/theme/global/compare-products.js @@ -51,16 +51,6 @@ export default function ({ noCompareMessage, urls }) { updateCounterNav(compareCounter, $clickedCompareLink, urls); }); - $('body').on('submit', '[data-product-compare]', event => { - const $this = $(event.currentTarget); - const productsToCompare = $this.find('input[name="products\[\]"]:checked'); - - if (productsToCompare.length <= 1) { - showAlertModal(noCompareMessage); - event.preventDefault(); - } - }); - $('body').on('click', 'a[data-compare-nav]', () => { const $clickedCheckedInput = $('body').find('input[name="products\[\]"]:checked'); diff --git a/templates/components/brand/product-listing.html b/templates/components/brand/product-listing.html index ea09261c2d..d675b587ea 100644 --- a/templates/components/brand/product-listing.html +++ b/templates/components/brand/product-listing.html @@ -2,12 +2,12 @@ {{> components/products/filter sort=pagination.brand.sort}} -