Skip to content

Commit

Permalink
Fix Modal test
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah committed Aug 12, 2024
1 parent 4354f79 commit 5e22f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-material/src/Modal/useModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function useModal(parameters: UseModalParameters): UseModalReturnValue {
const mountNodeRef = React.useRef<HTMLElement | null>(null);
const modalRef = React.useRef<HTMLDivElement>(null);
const handleRef = useForkRef(modalRef, rootRef);
const [exited, setExited] = React.useState(!open);
const [exited, setExited] = React.useState(true);
const hasTransition = getHasTransition(children);

let ariaHiddenProp = true;
Expand Down

0 comments on commit 5e22f45

Please sign in to comment.