Skip to content

Commit

Permalink
fix(form): change the form choices type from Observable to BehaviorSu…
Browse files Browse the repository at this point in the history
…bject
  • Loading branch information
cbourget committed Mar 20, 2019
1 parent d93fe04 commit 9308413
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/common/src/lib/form/shared/form.interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FormControl, FormGroup, ValidatorFn } from '@angular/forms';
import { Observable } from 'rxjs';
import { BehaviorSubject } from 'rxjs';

export interface Form {
fields: FormField[];
Expand Down Expand Up @@ -40,7 +40,7 @@ export interface FormFieldOptions {
export interface FormFieldInputs {}

export interface FormFieldSelectInputs extends FormFieldInputs {
choices: Observable<FormFieldSelectChoice[]> | FormFieldSelectChoice[];
choices: BehaviorSubject<FormFieldSelectChoice[]> | FormFieldSelectChoice[];
}

export interface FormFieldSelectChoice {
Expand Down

0 comments on commit 9308413

Please sign in to comment.