mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
Remove the disable table sorting
This commit is contained in:
parent
51e4982070
commit
ed5295641c
1 changed files with 1 additions and 2 deletions
|
@ -10,7 +10,6 @@
|
|||
export let size = undefined;
|
||||
export let sortable = false;
|
||||
export let style = undefined;
|
||||
export let sortCurrentData = true;
|
||||
|
||||
import { createEventDispatcher, setContext } from 'svelte';
|
||||
import { writable, derived } from 'svelte/store';
|
||||
|
@ -49,7 +48,7 @@
|
|||
$: ascending = $sortHeader.sortDirection === 'ascending';
|
||||
$: sortKey = $sortHeader.key;
|
||||
$: sorting = sortable && sortKey != null;
|
||||
$: if (sorting && sortCurrentData) {
|
||||
$: if (sorting) {
|
||||
if ($sortHeader.sortDirection === 'none') {
|
||||
sortedRows = rows;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue