Skip to content

Commit

Permalink
fix(Backdrop): add forwardRef to Backdrop component
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn-32 committed Dec 22, 2024
1 parent 1f14d8a commit 9ef5a9a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/base/Backdrop/Backdrop.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Backdrop as MuiBackdrop, type BackdropProps as MuiBackdropProps } from '@mui/material';
import React from 'react';

export function Backdrop(props: MuiBackdropProps): JSX.Element {
return <MuiBackdrop {...props} />;
}
const Backdrop = React.forwardRef<HTMLDivElement, MuiBackdropProps>((props, ref) => {
return <MuiBackdrop {...props} ref={ref} />;
});

export default Backdrop;

0 comments on commit 9ef5a9a

Please sign in to comment.