Skip to content

Commit

Permalink
use length as depcy, remove deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
SaidMarar committed Jul 18, 2023
1 parent 67971a5 commit 389675b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/mui-material/src/Tabs/Tabs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ declare const Tabs: OverridableComponent<TabsTypeMap>;

export interface TabsActions {
updateIndicator(): void;
/** @deprecated this action does nothing */
updateScrollButtons(): void;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/mui-material/src/Tabs/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ const Tabs = React.forwardRef(function Tabs(inProps, ref) {
firstObserver?.disconnect();
lastObserver?.disconnect();
};
}, [scrollable, scrollButtons, childrenProp]);
}, [scrollable, scrollButtons, childrenProp?.length]);

React.useEffect(() => {
setMounted(true);
Expand Down

0 comments on commit 389675b

Please sign in to comment.