Skip to content

Reactive Forms broken in Version 10 of angular-redux/forms #91

Closed
@Ebg-Bibi

Description

@Ebg-Bibi

This is a...

  • feature request
  • [x ] bug report
  • usage question

The "ReactiveConnectDirective" extends ConnectBase but does not set the protected field "form" anymore.

In Version 9 the Input property formGroup in "ReactiveConnect" is declared as:

@input('formGroup') form: any;

In Version 10 it is declared as:

@input() formGroup: any;

So ConnectBase.form is no longer set to the formGroup attributes value.

This breaks ConnectBase.resetState which is called from ConnectBase.ngAfterContentInit:

const formElement =
this.form.control === undefined ? this.form : this.form.control;

this.form is undefined and accessing control causes an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already existspkg: formRelated to the form package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions