Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed May 6, 2024
1 parent b7e45f1 commit f9d91d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/mui-material/src/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,18 @@ const Modal = React.forwardRef(function Modal(inProps, ref) {
},
slotProps: {
root: slotProps.root ?? componentsProps.root,
backdrop: slotProps.backdrop ?? componentsProps.backdrop,
backdrop: { ...backdropSlotProps, ...BackdropProps },
},
};

const [RootSlot, rootProps] = useSlot('root', {
elementType: ModalRoot,
externalForwardedProps,
getSlotProps: getRootProps,
additionalProps: {
ref,
as: component,
},
ownerState,
className: clsx(
className,
Expand Down

0 comments on commit f9d91d7

Please sign in to comment.