Skip to content

Commit

Permalink
fix(DialogContentTitle): add forwardRef to DialogTitle component
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn-32 committed Dec 23, 2024
1 parent 0b88dcc commit 09d0b56
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/base/DialogTitle/DialogTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import {
DialogTitle as MuiDialogTitle,
type DialogTitleProps as MuiDialogTitleProps
} from '@mui/material';
import React from 'react';

export function DialogTitle(props: MuiDialogTitleProps): JSX.Element {
return <MuiDialogTitle {...props} />;
}
const DialogTitle = React.forwardRef<HTMLDivElement, MuiDialogTitleProps>((props, ref) => {
return <MuiDialogTitle {...props} ref={ref} />;
});

export default DialogTitle;

0 comments on commit 09d0b56

Please sign in to comment.