Skip to content

mat-error with MatChipInput is not displayed under the input #11260

@loremaps

Description

@loremaps

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Be able to use mat-error with MatChipInput in the same way that we can use mat-hint.

What is the current behavior?

The error message is not visible below the input.

What are the steps to reproduce?

Providing a StackBlitz reproduction is the best way to share your issue.

https://stackblitz.com/edit/angular-ktsffr

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

Example use case: show <mat-error> when more than 3 chips are in the chip list.

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

Material 6.0.0

Is there anything else we should know?

Placing <mat-error> inside <mat-chip-list> just below <input> shows the error message but it not in the correct location (i.e. below the input's line). Please see provided StackBlitz.

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