diff --git a/packages/mui-material/src/Modal/Modal.js b/packages/mui-material/src/Modal/Modal.js index 173a74a68ce71b..1587a668aeb392 100644 --- a/packages/mui-material/src/Modal/Modal.js +++ b/packages/mui-material/src/Modal/Modal.js @@ -91,6 +91,8 @@ const Modal = React.forwardRef(function Modal(inProps, ref) { keepMounted = false, onBackdropClick, onClose, + onTransitionEnter, + onTransitionExited, open, slotProps, slots, @@ -154,10 +156,7 @@ const Modal = React.forwardRef(function Modal(inProps, ref) { elementType: RootSlot, externalSlotProps: rootSlotProps, externalForwardedProps: other, - getSlotProps: (otherHandlers) => { - const { onTransitionEnter, onTransitionExited, ...restOfHandlers } = otherHandlers; - return getRootProps(restOfHandlers); - }, + getSlotProps: getRootProps, additionalProps: { ref, as: component,