Skip to content

Commit a6e01d3

Browse files
authored
fix: Rendering error for tabs component order (#8508)
1 parent 9629929 commit a6e01d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/@react-aria/tabs/src/utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export function generateId<T>(state: TabListState<T> | null, key: Key | null | u
2525
}
2626

2727
let baseId = tabsIds.get(state);
28+
if (process.env.NODE_ENV !== 'production' && !baseId) {
29+
console.error('There is no tab id, please check if you have rendered the tab panel before the tab list.');
30+
}
2831
return `${baseId}-${role}-${key}`;
2932
}
3033

0 commit comments

Comments
 (0)