Home > database >  Disabled attribute in select not working (Angular)
Disabled attribute in select not working (Angular)

Time:10-12

Here is one question when i apply [disabled]="true" or [disabled]="false" . It won't work as of now.

I don't know what is the issue <select formControlName="actionSelected" [disabled]="condition" >

When i inspect it shows ng-reflect-is-disabled="true" in the select.

CodePudding user response:

Hope it help. You have to read some document

<select [attr.disabled]="CONDITION" />

CodePudding user response:

It works when i set <select formControlName="actionSelected" [attr.disabled]="condition ? '' : null" >

Thanks for the help!

  • Related