ngx-formly: Disable the form on NgOnInit doesn't disable formly

Description

export class AppComponent  implements OnInit{
  form = new FormGroup({});
  
  ngOnInit(){
    this.form.disable();
  }

Minimal Reproduction If on init I disable the form, it doesn’t work the disable.

https://stackblitz.com/edit/angular-fpuvb7

Your Environment

  • Angular version: 7.2.16
  • Formly version: 5.10.6

Additional context

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 33 (28 by maintainers)

Commits related to this issue

Most upvoted comments