Skip to content

Commit

Permalink
fix(CircularProgress): add forwardRef to CircularProgress component
Browse files Browse the repository at this point in the history
  • Loading branch information
capricorn-32 committed Dec 23, 2024
1 parent b953571 commit 564c365
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/base/CircularProgress/CircularProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import {
CircularProgress as MuiCircularProgress,
CircularProgressProps as MuiCircularProgressProps
} from '@mui/material';
import React from 'react';

export function CircularProgress(props: MuiCircularProgressProps): JSX.Element {
return <MuiCircularProgress {...props} />;
}
const CircularProgress = React.forwardRef<HTMLDivElement, MuiCircularProgressProps>(
(props, ref) => {
return <MuiCircularProgress {...props} ref={ref} />;
}
);

export default CircularProgress;

0 comments on commit 564c365

Please sign in to comment.