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

Unable to set disable on md-input when using model driven forms #1397

Closed
ccpony opened this issue Oct 1, 2016 · 3 comments
Closed

Unable to set disable on md-input when using model driven forms #1397

ccpony opened this issue Oct 1, 2016 · 3 comments

Comments

@ccpony
Copy link

ccpony commented Oct 1, 2016

Bug, feature request, or proposal: Bug

What is the expected behavior?

What is the current behavior?

Unable to initialize disabled state on when using ng2 model-driven forms

What are the steps to reproduce?

...
let account_idCtrl = this.formBuilder.control({
value: '',
disabled: true <=== doesn't work. Control is not disabled.
}, Validators.required);
let account_nameCtrl = this.formBuilder.control({
value:''
})

  this.myForm = this.formBuilder.group({
      account_id: account_idCtrl,
      account_name: account_nameCtrl
  })

...

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: http://plnkr.co/edit/o077B6uEiiIgkC0S06dd

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

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

@angular 2.0.1
material: experimental
angular-cli: 1.0.0.0-beta.16

Is there anything else we should know?

@RoxKilly
Copy link

RoxKilly commented Oct 2, 2016

May be duplicate of #1171

@jelbourn
Copy link
Member

jelbourn commented Nov 4, 2016

Dupe of #1171

@jelbourn jelbourn closed this as completed Nov 4, 2016
@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

3 participants