Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reactive Forms Disabled not handled #104

Closed
TheNumber-4 opened this issue Sep 22, 2016 · 2 comments
Closed

Reactive Forms Disabled not handled #104

TheNumber-4 opened this issue Sep 22, 2016 · 2 comments
Labels

Comments

@TheNumber-4
Copy link

Issue:
Trying to use mdl-textfield with form control disabled using reactive forms in angular 2.

Expected Behavior:
Field should be disabled

Actual behavior:
EXCEPTION: Error in app.component.html:2:60 caused by: this.valueAccessor.setDisabledState is not a function

Plunkr

I would guess this is also an issue on other form controls as well, I would recommend adding a disabled field to the reactive forms example.

@mseemann
Copy link
Owner

this function was introduced in RC6 or RC7. until now i had no time to implement this for all controls that implement the ControlValueAccessor interface. if you need this asap please consider providing a pull request.

@mseemann
Copy link
Owner

with angular 2.0.1 setDisabledState is now optional (angular/angular#11731)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants