Components: Cant remove chip with MatChipList Autocomplete Example

Created on 11 May 2018  路  3Comments  路  Source: angular/components

Bug, feature request, or proposal:

Bug

What is the expected behavior?

The chip should be removed when clicking the remove button.

What is the current behavior?

clicking remove does nothing

What are the steps to reproduce?

Using the autocomplete example on the angular website... try and remove a chip.

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

Material 6.0.1

Most helpful comment

It's really only a mistake in the docs example. The correct event on the mat-chip component should be "removed" instead of "remove", as demonstrated by the example for Chip Inputs.

(removed)="remove(fruit)"

See this updated stackblitz

All 3 comments

It's really only a mistake in the docs example. The correct event on the mat-chip component should be "removed" instead of "remove", as demonstrated by the example for Chip Inputs.

(removed)="remove(fruit)"

See this updated stackblitz

this is fixed by PR #11175

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._

Was this page helpful?
0 / 5 - 0 ratings