mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +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;
|
||||
</script>
|
||||
|
||||
<input
|
||||
bind:this="{ref}"
|
||||
type="checkbox"
|
||||
class:bx--checkbox="{true}"
|
||||
checked="{indeterminate ? false : checked}"
|
||||
indeterminate="{indeterminate}"
|
||||
id="{id}"
|
||||
{...$$restProps}
|
||||
aria-label="{undefined}"
|
||||
aria-checked="{indeterminate ? 'mixed' : checked}"
|
||||
on:change
|
||||
/>
|
||||
<label
|
||||
for="{id}"
|
||||
title="{title}"
|
||||
aria-label="{$$props['aria-label']}"
|
||||
class:bx--checkbox-label="{true}"></label>
|
||||
<div class:bx--checkbox--inline="{true}">
|
||||
<input
|
||||
bind:this="{ref}"
|
||||
type="checkbox"
|
||||
class:bx--checkbox="{true}"
|
||||
checked="{indeterminate ? false : checked}"
|
||||
indeterminate="{indeterminate}"
|
||||
id="{id}"
|
||||
{...$$restProps}
|
||||
aria-checked="{indeterminate ? 'mixed' : checked}"
|
||||
on:change
|
||||
/>
|
||||
<label
|
||||
for="{id}"
|
||||
title="{title}"
|
||||
aria-label="{$$props['aria-label']}"
|
||||
class:bx--checkbox-label="{true}"></label>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue