chore: fix some dialogs becoming unclickable

This commit is contained in:
Aman Harwara
2023-05-19 20:16:40 +05:30
parent d83e371022
commit 7e65c9c46b

View File

@@ -32,6 +32,11 @@ const ModalOverlay = forwardRef(
className="fixed top-0 left-0 z-modal h-full w-full"
ref={mergeRefs([setElement, ref])}
store={dialog}
getPersistentElements={() =>
Array.from(document.querySelectorAll('[role="dialog"], [role="alertdialog"]')).map((el) => {
return el.parentElement ? el.parentElement : el
})
}
{...props}
>
{children}