Skip to content
  • Dylan Hunn's avatar
    fix(forms): call `setDisabledState` on `ControlValueAcessor` when control is enabled (#47576) · 96b7fe93
    Dylan Hunn authored
    Previously, `setDisabledState` was never called when attached if the control is enabled. This PR fixes the bug, and creates a configuration option to opt-out of the fix.
    
    Fixes #35309.
    
    BREAKING CHANGE: setDisabledState will always be called when a `ControlValueAccessor` is attached. You can opt-out with `FormsModule.withConfig` or `ReactiveFormsModule.withConfig`.
    
    PR Close #47576
    96b7fe93