Skip to content

Commit 2efcaec

Browse files
committed
remove ref from dep array
1 parent 1e6812a commit 2efcaec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mui-material/src/StepButton/StepButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const StepButton = React.forwardRef(function StepButton(inProps, ref) {
7979

8080
React.useLayoutEffect(() => {
8181
registerElementRef?.(index, nodeRef, Boolean(disabled));
82-
}, [index, nodeRef, registerElementRef, disabled]);
82+
}, [index, registerElementRef, disabled]);
8383

8484
const childProps = {
8585
icon,

0 commit comments

Comments
 (0)