Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed May 24, 2024
1 parent 73d490e commit 93b32c4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/mui-material/src/Popover/Popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,7 @@ const Popover = React.forwardRef(function Popover(inProps, ref) {
slots,
slotProps: {
...slotProps,
paper: {
...externalPaperSlotProps,
style: isPositioned
? externalPaperSlotProps.style
: { ...externalPaperSlotProps.style, opacity: 0 },
},
paper: externalPaperSlotProps,
},
};

Expand All @@ -395,9 +390,12 @@ const Popover = React.forwardRef(function Popover(inProps, ref) {
externalForwardedProps,
additionalProps: {
elevation,
className: clsx(classes.paper, externalPaperSlotProps?.className),
style: isPositioned
? externalPaperSlotProps.style
: { ...externalPaperSlotProps.style, opacity: 0 },
},
ownerState,
className: clsx(classes.paper, externalPaperSlotProps?.className),
});

const [RootSlot, { slotProps: rootSlotPropsProp, ...rootProps }] = useSlot('root', {
Expand Down

0 comments on commit 93b32c4

Please sign in to comment.