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

Input not getting disabled when using formControlName #4731

Closed
radoslavpetranov opened this issue May 22, 2017 · 3 comments
Closed

Input not getting disabled when using formControlName #4731

radoslavpetranov opened this issue May 22, 2017 · 3 comments

Comments

@radoslavpetranov
Copy link

radoslavpetranov commented May 22, 2017

Bug:

Using formControlName with an input screws up the disabled attribute rendering the input enabled instead

What is the expected behavior?

The input needs to be disabled

What is the current behavior?

The input is enabled

What are the steps to reproduce?

http://plnkr.co/edit/8Ng4s66r3gw2I0QbINn0?p=preview

What is the use-case or motivation for changing an existing behavior?

I want to disable my input

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

@angular/cli: 1.0.2
node: 6.10.0
os: win32 x64
@angular/animations: 4.1.1
@angular/common: 4.1.1
@angular/compiler: 4.1.1
@angular/core: 4.1.1
@angular/flex-layout: 2.0.0-beta.8
@angular/forms: 4.1.1
@angular/http: 4.1.1
@angular/material: 2.0.0-beta.5
@angular/platform-browser: 4.1.1
@angular/platform-browser-dynamic: 4.1.1
@angular/router: 4.1.1
@angular/cli: 1.0.2
@angular/compiler-cli: 4.1.1

@willshowell
Copy link
Contributor

I believe this is working as expected. See #2667 (comment)

Similar discussion: #4219

@radoslavpetranov
Copy link
Author

Thanks for the clarification - no issue here in that case.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants