Skip to content

Commit 3e12dc7

Browse files
committed
chore: fix failing unit tests
1 parent dd4beab commit 3e12dc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/modules/angular-slickgrid/extensions/slickRowDetailView.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,11 @@ export class SlickRowDetailView extends UniversalSlickRowDetailView {
209209
// hook some events needed by the Plugin itself
210210

211211
// we need to redraw the open detail views if we change column position (column reorder)
212-
this.eventHandler.subscribe(this._grid.onColumnsReordered, () => this.redrawAllViewComponents());
212+
this.eventHandler.subscribe(this._grid.onColumnsReordered, this.redrawAllViewComponents.bind(this, false));
213213

214214
// on row selection changed, we also need to redraw
215215
if (this.gridOptions.enableRowSelection || this.gridOptions.enableCheckboxSelector) {
216-
this.eventHandler.subscribe(this._grid.onSelectedRowsChanged, () => this.redrawAllViewComponents());
216+
this.eventHandler.subscribe(this._grid.onSelectedRowsChanged, this.redrawAllViewComponents.bind(this, false));
217217
}
218218

219219
// on sort, all row detail are collapsed so we can dispose of all the Views as well
@@ -223,7 +223,7 @@ export class SlickRowDetailView extends UniversalSlickRowDetailView {
223223
this._subscriptions.push(
224224
this.eventPubSubService?.subscribe(
225225
['onFilterChanged', 'onGridMenuColumnsChanged', 'onColumnPickerColumnsChanged'],
226-
() => this.redrawAllViewComponents()
226+
this.redrawAllViewComponents.bind(this, false)
227227
),
228228
this.eventPubSubService?.subscribe(['onGridMenuClearAllFilters', 'onGridMenuClearAllSorting'], () =>
229229
window.setTimeout(() => this.redrawAllViewComponents())

0 commit comments

Comments
 (0)