mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(data-table): prevent selectable datatable with sticky header from jumping (#1230)
Fixes #1228
This commit is contained in:
parent
845225ffeb
commit
e8da9d7e9b
1 changed files with 18 additions and 17 deletions
|
@ -18,20 +18,21 @@
|
||||||
export let ref = null;
|
export let ref = null;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<input
|
<div class:bx--checkbox--inline="{true}">
|
||||||
bind:this="{ref}"
|
<input
|
||||||
type="checkbox"
|
bind:this="{ref}"
|
||||||
class:bx--checkbox="{true}"
|
type="checkbox"
|
||||||
checked="{indeterminate ? false : checked}"
|
class:bx--checkbox="{true}"
|
||||||
indeterminate="{indeterminate}"
|
checked="{indeterminate ? false : checked}"
|
||||||
id="{id}"
|
indeterminate="{indeterminate}"
|
||||||
{...$$restProps}
|
id="{id}"
|
||||||
aria-label="{undefined}"
|
{...$$restProps}
|
||||||
aria-checked="{indeterminate ? 'mixed' : checked}"
|
aria-checked="{indeterminate ? 'mixed' : checked}"
|
||||||
on:change
|
on:change
|
||||||
/>
|
/>
|
||||||
<label
|
<label
|
||||||
for="{id}"
|
for="{id}"
|
||||||
title="{title}"
|
title="{title}"
|
||||||
aria-label="{$$props['aria-label']}"
|
aria-label="{$$props['aria-label']}"
|
||||||
class:bx--checkbox-label="{true}"></label>
|
class:bx--checkbox-label="{true}"></label>
|
||||||
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue