Skip to content

Commit ee4dffa

Browse files
authored
Merge pull request #81 from bryanmylee/fix/selected-rows-page-store
Fix `allPageRowsSelected` behavior when setting to `false`
2 parents 84e2235 + cb1ef2a commit ee4dffa

File tree

9 files changed

+460
-15
lines changed

9 files changed

+460
-15
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "svelte-headless-table",
33
"description": "Unopinionated and extensible data tables for Svelte",
4-
"version": "0.15.1",
4+
"version": "0.15.2",
55
"scripts": {
66
"dev": "vite dev",
77
"build": "vite build",

src/lib/bodyCells.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class DataBodyCell<
101101
if (this.state === undefined) {
102102
throw new Error('Missing `state` reference');
103103
}
104-
return this.label(this, this.state);
104+
return this.label(this as DataBodyCell<Item, AnyPlugins, Value>, this.state);
105105
}
106106

107107
clone(): DataBodyCell<Item, Plugins> {

src/lib/columns.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class DataColumn<
152152
}
153153

154154
export type DisplayColumnDataGetter<Item, Plugins extends AnyPlugins = AnyPlugins> = (
155-
cell: DisplayBodyCell<Item, Plugins>,
155+
cell: DisplayBodyCell<Item>,
156156
state?: TableState<Item, Plugins>
157157
) => unknown;
158158

src/lib/headerCells.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export abstract class HeaderCell<
3838
throw new Error('Missing `state` reference');
3939
}
4040
// eslint-disable-next-line @typescript-eslint/no-explicit-any
41-
return this.label(this, this.state as any);
41+
return this.label(this as HeaderCell<Item, AnyPlugins>, this.state as any);
4242
}
4343
return this.label;
4444
}

0 commit comments

Comments
 (0)