This commit is contained in:
Timothy Jaeryang Baek
2025-11-30 15:56:42 -05:00
parent c62609faba
commit 9791c9bd8b
2 changed files with 5 additions and 2 deletions

View File

@@ -83,7 +83,7 @@
}}
>
<div>
<ChatBubbleOval class="size-4" />
<ChatBubbleOval className="size-4" />
</div>
<div class="font-medium">

View File

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