Skip to content

Commit

Permalink
fix(data-table): show which column was deselected when using single s…
Browse files Browse the repository at this point in the history
…election mode

closes #881
  • Loading branch information
emoralesb05 committed Oct 1, 2017
1 parent 556a42c commit 9e7503b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/platform/core/data-table/data-table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -841,10 +841,10 @@ export class TdDataTableComponent implements ControlValueAccessor, OnInit, After
*/
private _doSelection(row: any): boolean {
let wasSelected: boolean = this.isRowSelected(row);
if (!this._multiple) {
this.clearModel();
}
if (!wasSelected) {
if (!this._multiple) {
this.clearModel();
}
this._value.push(row);
} else {
// compare items by [compareWith] function
Expand Down

0 comments on commit 9e7503b

Please sign in to comment.