Skip to content

Commit

Permalink
Fix forward ref error
Browse files Browse the repository at this point in the history
  • Loading branch information
louilinn committed Sep 28, 2023
1 parent 8c70ae8 commit 58c84de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ButtonAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const useStyles = makeStyles((theme) => ({

// eslint-disable-next-line react/display-name
const ButtonAction = React.forwardRef(
({ className, children, disabled, ...props }) => {
({ className, children, disabled, ...props }, ref) => {
const classes = useStyles();

return (
Expand All @@ -70,6 +70,7 @@ const ButtonAction = React.forwardRef(
disabled: classes.buttonDisabled,
}}
disabled={disabled}
ref={ref}
{...props}
>
<Box className={classes.buttonContainer}>
Expand Down

0 comments on commit 58c84de

Please sign in to comment.