fix: modal role

This commit is contained in:
Zamitto 2024-05-17 11:26:01 -03:00
parent 60907cdc4b
commit 6a52c26874

View file

@ -42,7 +42,7 @@ export function Modal({
}, [onClose]); }, [onClose]);
const isTopMostModal = () => { const isTopMostModal = () => {
const openModals = document.querySelectorAll("[role=modal]"); const openModals = document.querySelectorAll("[role=dialog]");
return ( return (
openModals.length && openModals.length &&