From c8965186008f4f4b95a2b3d276062823da847229 Mon Sep 17 00:00:00 2001
From: Mira Fedas <30750556+mirafedas@users.noreply.github.com>
Date: Thu, 11 Jul 2024 14:17:08 +0200
Subject: [PATCH] MWPW-151513: Search results vanished when user clicks on
Marquee CTA:Start free trail (#2406)
* added restoring the search hash in modal
* fixed unit test
* updated merch-card-collection
---
.../merch-card-collection/merch-card-collection.js | 2 +-
libs/blocks/modal/modal.js | 8 ++++++++
libs/deps/merch-card-collection.js | 10 +++++-----
.../mocks/merch-card-collection.html | 2 +-
test/blocks/modals/modals.test.js | 14 ++++++++++++++
5 files changed, 29 insertions(+), 7 deletions(-)
diff --git a/libs/blocks/merch-card-collection/merch-card-collection.js b/libs/blocks/merch-card-collection/merch-card-collection.js
index c124d7dd8a..b5716f6599 100644
--- a/libs/blocks/merch-card-collection/merch-card-collection.js
+++ b/libs/blocks/merch-card-collection/merch-card-collection.js
@@ -36,7 +36,7 @@ const fail = (el, err = '') => {
return el;
};
-/** Parse andd prepare cards */
+/** Parse and prepare cards */
async function getCardsRoot(config, html) {
const cards = `
${html}
`;
const fragment = document.createRange().createContextualFragment(
diff --git a/libs/blocks/modal/modal.js b/libs/blocks/modal/modal.js
index d8cef368fb..a6298b8c03 100644
--- a/libs/blocks/modal/modal.js
+++ b/libs/blocks/modal/modal.js
@@ -12,6 +12,7 @@ const CLOSE_ICON = `