mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix(data-table): prefix internal ID for radio button, checkbox
Fixes #2081
This commit is contained in:
parent
f3a8d9972c
commit
ada418a3b1
3 changed files with 28 additions and 2 deletions
16
tests/DataTable/DuplicateDataTables.test.svelte
Normal file
16
tests/DataTable/DuplicateDataTables.test.svelte
Normal file
|
@ -0,0 +1,16 @@
|
|||
<script lang="ts">
|
||||
import { DataTable } from "carbon-components-svelte";
|
||||
|
||||
const headers = [
|
||||
{ key: "id", value: "id" },
|
||||
{ key: "contact.company", value: "Company name" },
|
||||
] as const;
|
||||
|
||||
const rows = [
|
||||
{ id: "1", contact: { company: "Company 1" } },
|
||||
{ id: "2", contact: { company: "Company 2" } },
|
||||
];
|
||||
</script>
|
||||
|
||||
<DataTable radio {headers} {rows} />
|
||||
<DataTable radio {headers} {rows} />
|
Loading…
Add table
Add a link
Reference in a new issue