Skip to content

Commit

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

export function DialogActions(props: MuiDialogActionsProps): JSX.Element {
return <MuiDialogActions {...props} />;
}
const DialogActions = React.forwardRef<HTMLDivElement, MuiDialogActionsProps>((props, ref) => {
return <MuiDialogActions {...props} ref={ref} />;
});

export default DialogActions;

0 comments on commit 568095e

Please sign in to comment.