From e615b9c5294ef7fc85f58a8648a188d6915a8908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Mon, 5 Sep 2022 18:27:48 +0000 Subject: [PATCH] Clear card_mod styles on popup close --- js/plugin/popups.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/plugin/popups.ts b/js/plugin/popups.ts index 6408da5..aec1c35 100644 --- a/js/plugin/popups.ts +++ b/js/plugin/popups.ts @@ -39,6 +39,9 @@ class BrowserModPopup extends LitElement { this._autocloseListener = undefined; } this._actions?.dismiss_action?.(); + if ((this as any)._cardMod?.[0]) { + (this as any)._cardMod[0].styles = ""; + } } openDialog() {