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.

feature(autocomplete): add @Input() disabled property

See original GitHub issue

Bug, 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:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
julianobrasilcommented, Oct 9, 2017

@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

0reactions
angular-automatic-lock-bot[bot]commented, Sep 8, 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

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 >

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