fix(data-table): prevent selectable datatable with sticky header from jumping

Fixes #1228
This commit is contained in:
Eric Liu 2022-04-04 19:21:08 -07:00
commit 65e54f1e36

View file

@ -18,7 +18,8 @@
export let ref = null; export let ref = null;
</script> </script>
<input <div class:bx--checkbox--inline="{true}">
<input
bind:this="{ref}" bind:this="{ref}"
type="checkbox" type="checkbox"
class:bx--checkbox="{true}" class:bx--checkbox="{true}"
@ -29,9 +30,10 @@
aria-label="{undefined}" aria-label="{undefined}"
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>