8000 fix(grid): fix grid set selections error when unselect · atinc/ngx-tethys@0c18db3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 0c18db3

Browse files
committed
fix(grid): fix grid set selections error when unselect
1 parent 2bd093e commit 0c18db3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/grid/grid.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export class ThyGridComponent implements OnInit, OnDestroy, DoCheck, IThyGridCol
275275
}
276276

277277
private _initialSelections(row: object, column: ThyGridColumn) {
278-
if (column.selections && column.selections.length > 0) {
278+
if (column.selections) {
279279
if (column.type === 'checkbox') {
280280
row[column.key] = column.selections.includes(row[this.rowKey]);
281281
this.onModelChange(row, column);

0 commit comments

Comments
 (0)
0