Skip to content

autocompleteDisabled porperty of MatAutocompleteTrigger doesnt work. #11405

@CurtisDS

Description

@CurtisDS

Bug, feature request, or proposal:

Bug

What is the expected behavior?

I should be able to use this property to turn off an autocomplete.

as in here: https://stackblitz.com/edit/angular-3ebz9m-tx7tf8?file=app%2Fautocomplete-overview-example.html

(but without needing to use ngIf and duplicating code)

As per the documentation I should be able to user autocompleteDisabled to turn off the autocomplete

What is the current behavior?

An Error: Can't bind to 'autocompleteDisabled' since it isn't a known property of 'input'
https://stackblitz.com/edit/angular-3ebz9m-6qsqbf?file=app/autocomplete-overview-example.html

What is the use-case or motivation for changing an existing behavior?

being able to have flexible components that can be both autocomplete input fields, or other types of input fields like password fields.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

6.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions