Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mj12albert committed Oct 25, 2024
1 parent fe6c7d6 commit 4dbf848
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/mui-base/src/Tabs/TabsList/useTabsList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ function useTabsList(parameters: useTabsList.Parameters): useTabsList.ReturnValu
TabMetadata
>();

// get id attribute of a Tab by tab value
// for binding aria attributes
// this function needs to be registered to the context
const tabIdLookup = React.useCallback(
(tabValue: any) => {
return subitems.get(tabValue)?.id;
Expand Down

0 comments on commit 4dbf848

Please sign in to comment.