feature(autocomplete): add @Input() disabled property
See original GitHub issueBug, feature request, or proposal:
The autocomplete should have a disabled input. Sometimes you want to mark the associated input as readonly (you do not want the disabled styles applied to the input) and do not want the autocomplete to fire up when you click on the component (in the cases you have some minimal default options)
What is the expected behavior?
To have an @Input() disabled
in autocomplete. As the Datepicker has a disabled property, to keep the consistency, the autocomplete should have one too.
What is the current behavior?
Without the @Input() disabled
you have to clear up the array, what is a not so difficult task, but it would be more consistent if it had a disabled property, like Datepicker.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to Disable the Browser Autocomplete and Autofill on ...
To disable the autocomplete of text in forms, use the autocomplete attribute of <input> and <form> elements. You'll need the "off" value of...
Read more >How to turn off form autocompletion - Web security | MDN
This article explains how a website can disable autocomplete for form fields.
Read more >How do you disable browser autocomplete on web form field ...
The best way to permanently disable this feature in forms and fields is to simply create a custom "id"/"name" value each time on...
Read more >How To Turn Off Autocomplete for Input - W3Schools
Tip: Go to our HTML Form Tutorial to learn more about HTML Forms. Tip: Go to our HTML autocomplete attribute reference to learn...
Read more >How to disable autocomplete of an HTML input field
Autocomplete attribute take two values: · If you want to disabled autocomplete feature then follow the approach which are given below: · Approach:....
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
@Upimage, I think this can help you: #3334
Specifically, I’d take a look at @willshowell’s solution: https://github.com/angular/material2/issues/3334#issuecomment-319191915
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.