Skip to content

Commit

Permalink
fix(form): Fix NPE when using a manual form field
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Godi committed Jul 28, 2016
1 parent 338dc97 commit 9ecbdfd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/elements/form/extras/form-field/FormField.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ export class FormField {
ngOnInit() {
setTimeout(() => {
this.field = this.inputs.first;
this.field.inputState.subscribe((evt) => {
this.inactive = evt.value;
});
if (this.field) {
this.field.inputState.subscribe((evt) => {
this.inactive = evt.value;
});
}
});
}
}
Expand Down

0 comments on commit 9ecbdfd

Please sign in to comment.