Skip to content

Commit 71f6bf1

Browse files
committed
fix(grid): change visibility-manager isDirty$
consider only checked columns
1 parent 09abd13 commit 71f6bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/angular/components/ui-grid/src/managers/visibility-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class VisibilityManger<T extends IGridDataEntry> {
3737
isDirty$ = this.options$.pipe(
3838
filter(() => !!this._initial),
3939
map(o => ([o.map(this._mapToVisibleDiff), this._initial])),
40-
map(([current, initial]) => !isEqual(current, initial)),
40+
map(([current, initial]) => !isEqual(current?.filter(v => v.checked), initial?.filter(v => v.checked))),
4141
);
4242

4343
set columns(columns: UiGridColumnDirective<T>[]) {

0 commit comments

Comments
 (0)