From c3f92cec934fd1ef15e45283e93b64ca8c549721 Mon Sep 17 00:00:00 2001 From: Jake/Rads Date: Thu, 23 Jun 2022 23:02:03 +0200 Subject: [PATCH] fix(dashboard): do not open/close card when opening icon --- dashboard/src/lib/CardsHeader.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/lib/CardsHeader.svelte b/dashboard/src/lib/CardsHeader.svelte index 720cbc8e..de26271d 100644 --- a/dashboard/src/lib/CardsHeader.svelte +++ b/dashboard/src/lib/CardsHeader.svelte @@ -45,7 +45,7 @@
{#if item && (item.avatar_url || item.icon)} - {if (event.key === "Enter") avatarOpen = true}} on:click={toggleAvatarModal} class="rounded-circle avatar" src={icon_url} alt={altText} /> + {if (event.key === "Enter") {avatarOpen = true}}} on:click|stopPropagation={toggleAvatarModal} class="rounded-circle avatar" src={icon_url} alt={altText} /> {:else} icon (default) {/if}