Skip to content

bug(mdc-chips): matChipRemove should not hide the chip #21561

@andrewseguin

Description

@andrewseguin

In our legacy chips, matChipRemove add the close button and emits a removed event on click. It does not remove the chip from the DOM.

In the MDC version, clicking on the matChipRemove close button will hide the chip through a collapsing width animation. It does not remove the chip from the DOM, but it does imply to the user and developer that the chip is removed. This may be misleading to users rendering their chips through an ngFor, where they may believe it is somehow removing the chip value from the source of truth list.

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaroundarea: material/chips

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions