From 9e7503b708b3b0709cf9372ed11f1dc0c34ae4cb Mon Sep 17 00:00:00 2001 From: emoralesb05 Date: Sat, 30 Sep 2017 20:08:44 -0700 Subject: [PATCH] fix(data-table): show which column was deselected when using single selection mode closes https://github.com/Teradata/covalent/issues/881 --- src/platform/core/data-table/data-table.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/core/data-table/data-table.component.ts b/src/platform/core/data-table/data-table.component.ts index 15b0d323dd..64c8b3e78a 100644 --- a/src/platform/core/data-table/data-table.component.ts +++ b/src/platform/core/data-table/data-table.component.ts @@ -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