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
This commit is contained in:
Classic298 2026-09-27 22:04:16 +02:00 • committed by GitHub
parent bc2416c5db
commit 0082c153f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
}}
>