[ADF-2529] click will unselect the selected row (#3188)

* [ADF-2529] click will unselect the selected row

* [ADF-2529] removed wrong comment
This commit is contained in:
Vito
2018-04-18 12:28:21 +01:00
committed by Denys Vuika
parent 5e5b0a9207
commit 5cd554e85e
2 changed files with 9 additions and 1 deletions

View File

@@ -312,6 +312,9 @@ describe('DataTable', () => {
expect(rows[0].isSelected).toBeTruthy();
dataTable.onRowClick(rows[0], null);
expect(rows[0].isSelected).toBeFalsy();
dataTable.onRowClick(rows[0], <any> { metaKey: true, preventDefault() {} });
expect(rows[0].isSelected).toBeTruthy();
dataTable.onRowClick(rows[0], <any> { metaKey: true, preventDefault() {} });