Skip to content

Commit a2a8591

Browse files
committed
[material-ui][Backdrop] Fix handling of component prop
1 parent 5e948a6 commit a2a8591

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/mui-material/src/Backdrop/Backdrop.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ const Backdrop = React.forwardRef(function Backdrop(inProps, ref) {
8080
};
8181
const backwardCompatibleSlotProps = { ...componentsProps, ...slotProps };
8282
const externalForwardedProps = {
83+
component,
8384
slots: backwardCompatibleSlots,
8485
slotProps: backwardCompatibleSlotProps,
8586
};

packages/mui-material/src/Backdrop/Backdrop.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('<Backdrop />', () => {
2424
testWithElement: null,
2525
},
2626
},
27-
skip: ['componentProp', 'componentsProp'],
27+
skip: ['componentsProp'],
2828
}));
2929

3030
it('should render a backdrop div with content of nested children', () => {

0 commit comments

Comments
 (0)