Skip to content

Commit

Permalink
fix(lib): only return select item value if it's defined (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eagleseb committed Sep 21, 2022
1 parent 491351c commit 75a05d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 75a05d4

Please sign in to comment.