diff --git a/projects/ngx-drag-to-select/src/lib/select-item.directive.ts b/projects/ngx-drag-to-select/src/lib/select-item.directive.ts index 64c58f6..87eafec 100644 --- a/projects/ngx-drag-to-select/src/lib/select-item.directive.ts +++ b/projects/ngx-drag-to-select/src/lib/select-item.directive.ts @@ -40,7 +40,7 @@ export class SelectItemDirective implements OnInit, DoCheck { dtsDisabled = false; get value(): SelectItemDirective | any { - return this.dtsSelectItem ? this.dtsSelectItem : this; + return this.dtsSelectItem != null ? this.dtsSelectItem : this; } constructor(