question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`disabled` on mdInput doesn't work when formControl directive is used(works with native el)

See original GitHub issue

see http://plnkr.co/edit/AvPMHB3lzqwaexypHkUR?p=preview

I’ve read some issues on angular/angular and apparently disabled shouldn’t work at all when reactive forms are used. But it looks like it does on native elements and doesn’t on element with mdInput directive.

cc @kara

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
emin93commented, Jan 24, 2017

I can reproduce this bug, but it seems to work when adding the disabled directive manually.

<!-- Doesn't work properly -->
<input md-input [disabled]="false">
<!-- Works -->
<input md-input disabled>
0reactions
angular-automatic-lock-bot[bot]commented, Sep 5, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular - Reactive forms - disabled attribute - Stack Overflow
Use the following directive in the template and pass in the disabled state using [disableControl]="disabled" on the form control in the template ...
Read more >
Disabling Form Controls When Working With Reactive Forms ...
When working with Angular Reactive Forms there are times when you need to disable/enable a form control, for example: <input [formControl]="formControl" ...
Read more >
Can't Bind to formGroup Not Known Property Error in Angular
Angular is trying to tell us that it doesn't know about the formGroup directive on the <form> element in your component. This usually...
Read more >
Angular directives for Bootstrap - AngularUI
To enable swiping, load the ngTouch module as a dependency. Use a <uib-carousel> element with <uib-slide> elements inside it. uib-carousel settings.
Read more >
error: formcontrolname must be used with a parent formgroup ...
You'll want to add a formGroup directive - Angular reactive forms ... is printed if I use disabled in the template but not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found