p-chips doesn't fire onRemove if chip is deleted with backspace #1556
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Current behavior
When you have chips in p-chips component and you press backspace to delete the last one,
this doesn't trigger onRemove event
Expected behavior
onRemove to be triggered
Minimal reproduction of the problem with instructions
Nothing special is needed here, but just a p-chips component and behavior attached to onRemove
What is the motivation / use case for changing the behavior?
It should behave like if you remove item from the "x"
Suggested fix
Lines 123-125 to be changed to:
Please tell us about your environment:
Ubuntu 16.10, Eclipse Neon.1, NPM, Apache 2.4, PHP 7.0
Angular version: 2.3.0
PrimeNG version: 1.0.1
Language: [all | TypeScript X.X | ES6/7 | ES5]
Node (for AoT issues):
node --version
=The text was updated successfully, but these errors were encountered: