angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.18k stars 6.68k forks source link

fix(material/chips): simplify repeat chip removal prevention #29048

Closed crisbeto closed 1 month ago

crisbeto commented 1 month ago

We have some logic that prevents chip removal if the users is holding down the backspace key. It currently breaks down in the case where a value is pasted into the input via click.

These changes simplify our detection by using KeyboardEvent.repeat which also resolves the paste issue.

angular-automatic-lock-bot[bot] commented 18 hours ago

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.