From 61a1a88049d373faa824a110b35b10c2049da05d Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:47:39 +0100 Subject: [PATCH] refactor(tabs): resilience for tab ID values (#3530) We need to ensure that tabs only includes a valid tab value, whereas the current implementation might start with e.g. a number. --- packages/components/src/components/tabs/tabs.lite.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/components/tabs/tabs.lite.tsx b/packages/components/src/components/tabs/tabs.lite.tsx index 257f116ff66..77b7134c471 100644 --- a/packages/components/src/components/tabs/tabs.lite.tsx +++ b/packages/components/src/components/tabs/tabs.lite.tsx @@ -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; });