@rxap/material-table-system 14.0.1 → 14.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -283,10 +283,7 @@ const RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS = new InjectionToken('rxap-m
283
283
  class SelectRowService {
284
284
  constructor(options = null) {
285
285
  this.selectionModel = new SelectionModel(true);
286
- this.selectionModel = new SelectionModel(options?.multiple);
287
- if (options?.selected) {
288
- this.selectionModel.select(...options?.selected);
289
- }
286
+ this.selectionModel = new SelectionModel(options?.multiple, options?.selected, options?.emitChanges, options?.compareWith);
290
287
  this.selectedRows$ = this.selectionModel.changed.pipe(map(() => this.selectionModel.selected));
291
288
  }
292
289
  get selectedRows() {