From 0082c153f52d68cee6e44012069dfb38ec0cdf52 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Sun, 27 Sep 2026 22:04:16 +0200 Subject: [PATCH] fix: first click in a chat's Share or Delete dialog does nothing (#31488) Choosing Share or Delete from a chat's menu in the sidebar left the menu open behind the dialog, so the first click inside the dialog only closed the menu behind it. Copy Link and Confirm had to be clicked twice. Share and Delete now close the menu before opening their dialog, like Rename, Pin and Clone already do. Fixes #31486 --- src/lib/components/layout/Sidebar/ChatMenu.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/components/layout/Sidebar/ChatMenu.svelte b/src/lib/components/layout/Sidebar/ChatMenu.svelte index 5e2100d48c..b3286d80a3 100644 --- a/src/lib/components/layout/Sidebar/ChatMenu.svelte +++ b/src/lib/components/layout/Sidebar/ChatMenu.svelte @@ -313,6 +313,7 @@ draggable="false" class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-900 w-full" on:click={() => { + dropdown.close(); shareHandler(); }} > @@ -468,6 +469,7 @@ draggable="false" class="flex h-[1.6875rem] gap-2 items-center rounded-xl px-2 text-[0.8125rem] cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-900 w-full" on:click={() => { + dropdown.close(); deleteHandler(); }} >