diff --git a/ng2-components/ng2-activiti-form/src/components/widgets/people/people.widget.ts b/ng2-components/ng2-activiti-form/src/components/widgets/people/people.widget.ts index 1bf41b4abf..556ba64dc6 100644 --- a/ng2-components/ng2-activiti-form/src/components/widgets/people/people.widget.ts +++ b/ng2-components/ng2-activiti-form/src/components/widgets/people/people.widget.ts @@ -72,10 +72,12 @@ export class PeopleWidgetComponent extends WidgetComponent implements OnInit, Af } ngAfterViewInit() { - let onBlurInputEvent = Observable.fromEvent(this.input.nativeElement, 'blur'); - onBlurInputEvent.debounceTime(200).subscribe((event) => { - this.flushValue(); - }); + if (this.input) { + let onBlurInputEvent = Observable.fromEvent(this.input.nativeElement, 'blur'); + onBlurInputEvent.debounceTime(200).subscribe((event) => { + this.flushValue(); + }); + } } onKeyUp(event: KeyboardEvent) {