Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdrnf committed Mar 10, 2023
1 parent 9882680 commit 8bc1cb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mui-material/src/Tabs/ScrollbarSize.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function ScrollbarSize(props) {
};

React.useEffect(() => {
const element = nodeRef.current
const element = nodeRef.current;
const handleResize = debounce(() => {
const prevHeight = scrollbarHeight.current;
setMeasurements(element);
Expand All @@ -45,7 +45,7 @@ export default function ScrollbarSize(props) {
}, [onChange]);

React.useEffect(() => {
setMeasurements();
setMeasurements(nodeRef.current);
onChange(scrollbarHeight.current);
}, [onChange]);

Expand Down

0 comments on commit 8bc1cb5

Please sign in to comment.