Skip to content

Commit

Permalink
fix(FromControlLabel): add forwardRef to FromControlLabel component
Browse files Browse the repository at this point in the history
Signed-off-by: seniorliketocode <[email protected]>
  • Loading branch information
capricorn-32 committed Dec 23, 2024
1 parent 9847464 commit 7c0acb2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/base/FormControlLabel/FormControlLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import {
FormControlLabel as MuiFormControlLabel,
FormControlLabelProps as MuiFormControlLabelProps
} from '@mui/material';
import React from 'react';

export function FormControlLabel(props: MuiFormControlLabelProps): JSX.Element {
return <MuiFormControlLabel {...props} />;
}
const FormControlLabel = React.forwardRef<HTMLDivElement, MuiFormControlLabelProps>(
(props, ref) => {
return <MuiFormControlLabel {...props} ref={ref} />;
}
);

export { FormControlLabel };

0 comments on commit 7c0acb2

Please sign in to comment.