mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-05 02:41:34 +00:00
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:
parent
bc2416c5db
commit
0082c153f5
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue