From ff1098abf65562156676123865a9da04d96f2c0a Mon Sep 17 00:00:00 2001 From: Miodec Date: Thu, 18 Feb 2021 01:46:11 +0000 Subject: [PATCH] removed form from simple popups --- src/js/simple-popups.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/simple-popups.js b/src/js/simple-popups.js index eab77239f..d66f20e23 100644 --- a/src/js/simple-popups.js +++ b/src/js/simple-popups.js @@ -25,7 +25,7 @@ class SimplePopup { reset() { this.element.html(`
-
+
`); } @@ -119,6 +119,7 @@ $(document).on("click", "#simplePopupWrapper .button", (e) => { $(document).on("keyup", "#simplePopupWrapper input", (e) => { if (e.key === "Enter") { + e.preventDefault(); let id = $("#simplePopup").attr("popupId"); simplePopups[id].exec(); }