From 75a05d48cbf18814430d476e161230dce580cd01 Mon Sep 17 00:00:00 2001 From: Eagleseb Date: Wed, 21 Sep 2022 22:58:30 +0200 Subject: [PATCH] fix(lib): only return select item value if it's defined (#161) --- projects/ngx-drag-to-select/src/lib/select-item.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(