You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(material-experimental/mdc-chips): decouple removal from animation (#21586)
Currently the MDC chips automatically trigger an animation that collapses the chip to 0x0
dimensions, but it still keeps it in the DOM unless the consumer updates their data source.
This is misleading and there's no way for the consumer to see it.
These changes bring the chip in line with our current behavior where we only dispatch the
remove event and then it's up to the consumer to remove the chip.
Making these changes also revealed some tests that were passing by accident and weren't
actually testing the things they were supposed to, because the `animationend` event wasn't
being dispatched. I've tweaked them in order to get them to work as expected.
Fixes#21561.
0 commit comments