From 726108f29349dae0b28783127accba107f8510ea Mon Sep 17 00:00:00 2001 From: sai6855 Date: Sun, 4 Feb 2024 17:02:33 +0530 Subject: [PATCH] Update Dialog paper component --- packages/mui-material/src/Dialog/Dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mui-material/src/Dialog/Dialog.js b/packages/mui-material/src/Dialog/Dialog.js index e51233aff34d29..15592f2606a457 100644 --- a/packages/mui-material/src/Dialog/Dialog.js +++ b/packages/mui-material/src/Dialog/Dialog.js @@ -237,7 +237,7 @@ const Dialog = React.forwardRef(function Dialog(inProps, ref) { const backwardCompatibleSlots = { transition: TransitionComponentProp, - paper: DialogPaper, + paper: PaperComponentProp, ...slots, }; const backwardCompatibleSlotProps = { @@ -261,7 +261,7 @@ const Dialog = React.forwardRef(function Dialog(inProps, ref) { delete transitionProps.ownerState; const [PaperSlot, paperProps] = useSlot('paper', { - elementType: PaperComponentProp, + elementType: DialogPaper, externalForwardedProps: { slots: backwardCompatibleSlots, slotProps: backwardCompatibleSlotProps,