Skip to content

Commit

Permalink
fix: tabs key warning
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Aug 26, 2022
1 parent 8b0bd0d commit ac6a00a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/twelve-pigs-train.md
@@ -0,0 +1,5 @@
---
"@chakra-ui/tabs": patch
---

Fix key warning for tabs component
1 change: 1 addition & 0 deletions packages/components/tabs/src/use-tabs.ts
Expand Up @@ -348,6 +348,7 @@ export function useTabPanels<P extends UseTabPanelsProps>(props: P) {
createElement(
TabPanelProvider,
{
key: index,
value: {
isSelected: index === selectedIndex,
id: makeTabPanelId(id, index),
Expand Down

1 comment on commit ac6a00a

@vercel
Copy link

@vercel vercel bot commented on ac6a00a Aug 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.