Closed
Description
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.