You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ControlValueAccessor interface recently received a new optional method, setDisabledState. There are places in the form handling code that do not check if the setDisabledState method is present before invoking it.
Setting disables state should either always be checked, implemented in some base class or abstract way or have some function that things can call to encapsulate the optional call.
Reproduction of the problem
Set disabled on a form with components that do not implement setDisabledState
Angular version: 2.0.0
Browser: all
Language: all
The text was updated successfully, but these errors were encountered:
I'm submitting a ... (check one with "x")
Current behavior
The
ControlValueAccessor
interface recently received a new optional method,setDisabledState
. There are places in the form handling code that do not check if thesetDisabledState
method is present before invoking it.angular/modules/@angular/forms/src/directives/reactive_directives/form_control_directive.ts
Line 93 in 57cb820
angular/modules/@angular/forms/src/directives/reactive_directives/form_control_name.ts
Line 150 in dd8204a
Expected behavior
Setting disables state should either always be checked, implemented in some base class or abstract way or have some function that things can call to encapsulate the optional call.
Reproduction of the problem
Set disabled on a form with components that do not implement
setDisabledState
The text was updated successfully, but these errors were encountered: