diff --git a/package.json b/package.json index 8d211ef..d29fdbd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ng2-md-datatable", - "version": "1.3.14", + "version": "1.3.15", "description": "Angular 2 DataTable component for using with Material 2", "main": "dist/ng2-md-datatable/ng2-md-datatable.umd.js", "module": "dist/ng2-md-datatable/index.js", diff --git a/src/lib/md-datatable.component.ts b/src/lib/md-datatable.component.ts index 503408f..6c40429 100644 --- a/src/lib/md-datatable.component.ts +++ b/src/lib/md-datatable.component.ts @@ -1,5 +1,3 @@ -/* tslint:disable:triple-equals */ - import { Component, AfterContentInit, @@ -44,7 +42,11 @@ export class MdDataTableComponent extends BaseComponent implements AfterContentI @Input() set selectable(val: any) { - this.isSelectable = val == 'true'; + if (typeof(val) === 'boolean') { + this.isSelectable = val; + } else { + this.isSelectable = JSON.parse(val); + } } @Output() selectionChange: EventEmitter =