From 8cefe4f79a66a9949e8ca4b222bd34abe61b0d51 Mon Sep 17 00:00:00 2001 From: Jairo Hulshof Date: Thu, 7 Mar 2024 14:12:01 +0100 Subject: [PATCH] Update dialog generateDialogElement method --- src/dialog.mjs | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/src/dialog.mjs b/src/dialog.mjs index 5249826..872b34d 100644 --- a/src/dialog.mjs +++ b/src/dialog.mjs @@ -122,7 +122,7 @@ export default class Dialog extends HTMLElement { ${this.data.description}
-
@@ -139,42 +139,9 @@ export default class Dialog extends HTMLElement { pointer-events: none; transform: translate(0, 100px); } - @media print { - .${this.config.prefix} { - display: none; - } - } `); const formElement = dialogElement.lastElementChild; - const template = ` - `; - - const dialogElement = htmlToElement(template); - - dialogElement.insertAdjacentHTML('afterbegin', ` - `); - - return dialogElement; - }; formElement.addEventListener("submit", preventingDefault(this.submitHandler.bind(this)));