From b15404bb0d4fb3890f66b59f3521e57ae64dc527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20Zaj=C4=85c?= Date: Thu, 25 Jan 2024 14:52:45 +0100 Subject: [PATCH] #1458 optionsPage - showDomainModal FIX --- src/optionsPage/functions/showDomainModal.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/optionsPage/functions/showDomainModal.js b/src/optionsPage/functions/showDomainModal.js index dfba010..9793416 100644 --- a/src/optionsPage/functions/showDomainModal.js +++ b/src/optionsPage/functions/showDomainModal.js @@ -19,7 +19,10 @@ const S = require('../../selectors'); -const showDomainModal = () => { +const showDomainModal = e => { + e.preventDefault(); + e.stopPropagation(); + const modalEl = document.querySelector(S.optionsPage.domainModal.element); const validation = document.querySelector(S.optionsPage.domainModal.validation); const inputEl = document.querySelector(S.optionsPage.domainModal.input);