The `disabled` attribute does not work on a top level form which is an array
See original GitHub issueTrying to get the top level form disabled in the following case (where currentStateRotors
is an array):
<app-rotors-form
*ngIf="(currentStateRotors$ | async) as currentStateRotors"
[rotors]="currentStateRotors"
[disabled]="true"
></app-rotors-form>
The disabled property is not taken into account.
It should loop over the array and disable all the controls from the array.
Issue Analytics
- State:
- Created 4 years ago
- Comments:10
Top Results From Across the Web
php - How to set the disabled attribute as ... - Stack Overflow
I intend to set the disabled attribute as "disabled" in the first option of both selects. This way the first options will be...
Read more >How to set the disabled or readonly attribute of a CCK field
Here's a code snippet that you can use to set the disabled attribute of a CCK field. First, you need to create a...
Read more >HTML attribute: disabled - HTML: HyperText Markup Language
The Boolean disabled attribute, when present, makes the element not mutable, focusable, or even submitted with the form. The user can ...
Read more >HTML | disabled Attribute - GeeksforGeeks
The disabled attribute in HTML indicates whether the element is disabled or not. If this attribute is set, the element is disabled.
Read more >FormControlName - Angular
Syncs a FormControl in an existing FormGroup to a form control element by name ... Returns an array that represents the path from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’ve noticed the same behaviour when FormArray’s are in SubForms. When initially
[disable]="true"
, normal FormControls get disabled but FormControls that are part of FormArrays don’t get disabled.Glad to hear that 👍 !
Sounds like a bug @areijngoudt can you create a new issue please?