[disabled] option doesn't work
See original GitHub issueI have tried adding the option [disabled]=“true” to an ng-select as shown here:
https://ng-select.github.io/ng-select#/multiselect
However I receive the following runtime error in the browser console:
Can't bind to 'disabled' since it isn't a known property of 'ng-select'.
I would like to use the option on a single select if possible, but I have tested on both a single and multi select and it doesn’t work in either case. Other options work as expected.
More Info
ng-select version: 0.35.1
browser: Chrome, IE11
reproducible in demo page: NO
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Why is my select option not getting disabled? - Stack Overflow
I tried to simulate the filling of the select and honestly everything seems to work correctly at the onchange . It could depend...
Read more >HTML option disabled Attribute - W3Schools
The disabled attribute is a boolean attribute. When present, it specifies that an option should be disabled. A disabled option is unusable and...
Read more >HTMLSelectElement.disabled - Web APIs | MDN
The HTMLSelectElement.disabled is a boolean value that reflects the disabled HTML attribute, which indicates whether the control is disabled ...
Read more >Disabling an item in a select doesn't work
Hello. I try to dynamically change the disabled value of some items of a select component following the value of another component.
Read more >Enable or disable macros in Microsoft 365 files
You don't have to enable macros to see or edit the file; only if you want the ... In Excel this option is...
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 Free
Top 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
@varnastadeus Yes, adding [(ngModel)] to the ng-select fixed it. Many thanks!
Probably it means that ng-select cannot be disabled unless it is inside and bound to a form.