From 1ff86a246d64a1721884ab58737545e0e73cac3b Mon Sep 17 00:00:00 2001 From: Mishig Davaadorj Date: Mon, 22 Jan 2024 10:03:28 +0100 Subject: [PATCH] [Fix] UI bug "Delete" label --- src/lib/components/NavConversationItem.svelte | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/components/NavConversationItem.svelte b/src/lib/components/NavConversationItem.svelte index 88117b9f18e..b786856c304 100644 --- a/src/lib/components/NavConversationItem.svelte +++ b/src/lib/components/NavConversationItem.svelte @@ -41,7 +41,10 @@ type="button" class="flex h-5 w-5 items-center justify-center rounded md:hidden md:group-hover:flex" title="Confirm delete action" - on:click|preventDefault={() => dispatch("deleteConversation", conv.id)} + on:click|preventDefault={() => { + confirmDelete = false; + dispatch("deleteConversation", conv.id); + }} > @@ -49,9 +52,7 @@ type="button" class="flex h-5 w-5 items-center justify-center rounded md:hidden md:group-hover:flex" title="Cancel delete action" - on:click|preventDefault={() => { - confirmDelete = false; - }} + on:click|preventDefault={() => (confirmDelete = false)} >