Skip to content

Commit

Permalink
fix: values are not correctly restored in multi-selection mode if no …
Browse files Browse the repository at this point in the history
…initial selection prior to filtering (#272)

fixes #270
  • Loading branch information
macjohnny authored Oct 23, 2020
1 parent cf7f434 commit ca0e2ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/mat-select-search/mat-select-search.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -579,10 +579,10 @@ export class MatSelectSearchComponent implements OnInit, OnDestroy, ControlValue
}
});
}
this.previousSelectedValues = values;

if (restoreSelectedValues) {
this.matSelect._onChange(values);
this.previousSelectedValues = values;
}
}
});
Expand Down

0 comments on commit ca0e2ec

Please sign in to comment.