Skip to content

Commit

Permalink
fix(Disabled): Disabled must emit in fallback option
Browse files Browse the repository at this point in the history
  • Loading branch information
zak-cloudnc committed Jun 23, 2021
1 parent 8d9e3ce commit c936ff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-sub-form/src/lib/ngx-sub-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export function createForm<ControlInterface, FormInterface>(
ControlInterface,
FormInterface
>(options)
? options.disabled$ ?? EMPTY
? options.disabled$ ?? of(false)
: componentHooks.setDisabledState$;

const transformedValue$: Observable<FormInterface> = writeValue$.pipe(
Expand Down

0 comments on commit c936ff7

Please sign in to comment.