mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-08 03:08:02 +00:00
refac
This commit is contained in:
parent
c62609faba
commit
9791c9bd8b
2 changed files with 5 additions and 2 deletions
|
|
@ -83,7 +83,7 @@
|
|||
}}
|
||||
>
|
||||
<div>
|
||||
<ChatBubbleOval class="size-4" />
|
||||
<ChatBubbleOval className="size-4" />
|
||||
</div>
|
||||
|
||||
<div class="font-medium">
|
||||
|
|
|
|||
|
|
@ -59,7 +59,10 @@
|
|||
document.body.appendChild(modalElement);
|
||||
focusTrap = FocusTrap.createFocusTrap(modalElement, {
|
||||
allowOutsideClick: (e) => {
|
||||
return e.target.closest('[data-sonner-toast]') !== null;
|
||||
return (
|
||||
e.target.closest('[data-sonner-toast]') !== null ||
|
||||
e.target.closest('.modal-content') === null
|
||||
);
|
||||
}
|
||||
});
|
||||
focusTrap.activate();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue