Material-components-web: [MDCChipSet] Update docs to use trailing action component

Created on 24 Jun 2020  路  3Comments  路  Source: material-components/material-components-web

Bug report


Can't remove chips clicking in the trailing remove icon since version 7.0.0

Steps to reproduce

  1. Go to https://codepen.io/alcarazzam/pen/RwWeOQK~~. The demo actually works, but hard to find.
  2. Try to remove a chip.

Actual behavior


Can't remove the chip

Expected behavior


Chip is removed

Your Environment:

| Software | Version(s) |
| ---------------- | ---------- |
| MDC Web |7.0.0
| Browser |83.0.4103.116
| Operating System |Arch Linux

backlog docs

Most helpful comment

Thanks @ota-meshi! I only had to add the mdc-chip-trailing-action class to the remove button in order to make it work. The documentation should include these information.

All 3 comments

Hi @m-alzam. I happened to find this issue and the following component, so I will share them with you.

Perhaps you should use the trailingaction component.

https://github.com/material-components/material-components-web/tree/master/packages/mdc-chips/trailingaction

The problem may be that the documentation is hard to find.

Thanks @ota-meshi! I only had to add the mdc-chip-trailing-action class to the remove button in order to make it work. The documentation should include these information.

@patrickrodee Do we need to update the docs section of https://github.com/material-components/material-components-web/tree/master/packages/mdc-chips#trailing-icon to reflect that users should use the trailing action component instead?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ronnieroyston picture ronnieroyston  路  3Comments

7iomka picture 7iomka  路  3Comments

kimurakenshi picture kimurakenshi  路  3Comments

ghost picture ghost  路  3Comments

jimyhdolores picture jimyhdolores  路  3Comments