Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mui/material-ui
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8accaca50e2e9724ef9f7e0cf9c584f1d7607a54
Choose a base ref
..
head repository: mui/material-ui
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 869ff4c6d738f875195b06e7af1ab04226221df3
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/mui-material/src/Modal/useModal.ts
2 changes: 1 addition & 1 deletion packages/mui-material/src/Modal/useModal.ts
Original file line number Diff line number Diff line change
@@ -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(true);
const [exited, setExited] = React.useState(!open);
const hasTransition = getHasTransition(children);

let ariaHiddenProp = true;