Skip to content

Commit

Permalink
refactor(tabs): resilience for tab ID values (#3530)
Browse files Browse the repository at this point in the history
We need to ensure that tabs only includes a valid tab value, whereas the current implementation might start with e.g. a number.
  • Loading branch information
mfranzke authored Dec 18, 2024
1 parent 68a7e95 commit 61a1a88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/components/tabs/tabs.lite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default function DBTabs(props: DBTabsProps) {
onMount(() => {
state._id = props.id || state._id;

state._name = props.name || uuid();
state._name = `tabs-${props.name || uuid()}`;

state.initialized = true;
});
Expand Down

0 comments on commit 61a1a88

Please sign in to comment.