From f7561fa759c6d79ef54e28a2308958b77b25c977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cbc-yevhenii-buliuk=E2=80=9D?= <“yevhenii.buliuk@bigcommerce.com”> Date: Tue, 7 Feb 2023 14:18:09 +0200 Subject: [PATCH] fix(storefront): BCTHEME-1346 Gift certificate CSS properties are applied to page after previewing Gift certificate on storefront --- CHANGELOG.md | 1 + assets/js/theme/global/modal.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f384eccb00..72d913fb63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Remove xlink attributes on svg [#2322](https://github.com/bigcommerce/cornerstone/pull/2322) - form.serialize() ignores dropdown option elements that have the disabled attribute [#2326](https://github.com/bigcommerce/cornerstone/pull/2326) - Extended BigCommerce.accountPayments app initialization interface [#2317](https://github.com/bigcommerce/cornerstone/pull/2317) +- Gift certificate CSS properties are applied to page after previewing Gift certificate on storefront [#2330](https://github.com/bigcommerce/cornerstone/pull/2330) ## 6.8.0 (01-26-2023) - Add remote_api_scripts into cart/preview template to let GA3 snippet to fire the Product Added event, when clicking Add to cart button on Product detail page and rendering the response in popup. [#2281](https://github.com/bigcommerce/cornerstone/pull/2281) diff --git a/assets/js/theme/global/modal.js b/assets/js/theme/global/modal.js index a57a4b0f3b..3402bcb891 100644 --- a/assets/js/theme/global/modal.js +++ b/assets/js/theme/global/modal.js @@ -223,6 +223,8 @@ export class Modal { onModalClose() { $('body').removeClass(bodyActiveClass); + + this.clearContent(); } onModalClosed() {