Skip to content

Commit 2ab66d0

Browse files
committed
fix: optional FeSelect injection in <option>
1 parent 0f3c3fe commit 2ab66d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/ngfe/src/lib/value-accessors/fe-select.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
Input,
66
OnChanges,
77
OnDestroy,
8-
OnInit,
8+
OnInit, Optional,
99
Renderer2,
1010
SimpleChanges,
1111
} from '@angular/core';
@@ -124,7 +124,7 @@ export class FeSelectOption implements OnInit, OnChanges, OnDestroy {
124124
@Input() value?: any;
125125

126126
constructor(
127-
private select: FeSelect,
127+
@Optional() private select: FeSelect,
128128
private renderer: Renderer2,
129129
private elementRef: ElementRef,
130130
) {

0 commit comments

Comments
 (0)