chore: fix some dialogs becoming unclickable
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user