Skip to content

Angular Material - Chips Autocomplete - how to display required error message & error highlight color #14585

@rahultalar

Description

@rahultalar

What is the expected behavior?

I am using angular material - mat-autocomplete inside form. I want to show red highlight text and border color to the input field & mat-error message for matAutocomplete input when form is invalid. Suggestion for reactive or template driven form will work

What is the current behavior?

required validation is not applied to mat-autocomplete

What are the steps to reproduce?

https://stackblitz.com/edit/angular-material-chips-autocomplete-validation-error-highlight

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

Angualr 6 & Above

Is there anything else we should know?

screenshot : https://i.stack.imgur.com/58dMV.png

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