From 862d475f156d9998f6f701e0a4287f7f641348e9 Mon Sep 17 00:00:00 2001 From: Emmanuel Pelletier Date: Fri, 21 Jun 2024 14:17:35 +0200 Subject: [PATCH] gaufre: fix crash on safari the popup object was always null in this case, we have to use the given element from the parameter --- website/public/api/v1/gaufre.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/public/api/v1/gaufre.js b/website/public/api/v1/gaufre.js index 4381a73..777fc57 100644 --- a/website/public/api/v1/gaufre.js +++ b/website/public/api/v1/gaufre.js @@ -183,7 +183,7 @@ const showPopup = (button) => { let popup = document.querySelector(`#lasuite-gaufre-popup`) const show = (el) => { - updatePopupStyle(popup, button) + updatePopupStyle(el, button) el.classList.add("lasuite--gaufre-opened") lastFocusedButton = button setTimeout(() => {