diff --git a/packages/mui-material/src/Modal/Modal.js b/packages/mui-material/src/Modal/Modal.js index c25792fda36a02..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, diff --git a/packages/mui-material/src/Modal/Modal.test.js b/packages/mui-material/src/Modal/Modal.test.js index efea82a0e1f8bf..48fb7f34dd6eb1 100644 --- a/packages/mui-material/src/Modal/Modal.test.js +++ b/packages/mui-material/src/Modal/Modal.test.js @@ -871,4 +871,14 @@ describe('', () => { expect(getByTestId('backdrop')).to.have.class('custom-backdrop'); }); }); + + it('should not warn when onTransitionEnter and onTransitionExited are provided', () => { + expect(() => { + render( + {}} onTransitionExited={() => {}}> +
+ , + ); + }).not.toErrorDev(); + }); });