p-chip remove event doesn't match documentation #9735
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
If you have a PrimeNG PRO Support subscription please post your issue at;
https://pro.primefaces.org
where our team will respond within 4 business hours.
If you do not have a PrimeNG PRO Support subscription, fill-in the report below. Please note that
your issue will be added to the waiting list of community issues and will be reviewed on a first-come first-serve basis, as a result, the support team is unable to guarantee a specific schedule on when it will be reviewed. Thank you for your understanding.
Current Queue Time for Review
Without PRO Support: ~8-12 weeks.
With PRO Support: 1 hour
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
Please demonstrate your case at stackblitz by using the issue template below. Issues without a test case have much less possibility to be reviewd in detail and assisted.
https://stackblitz.com/github/primefaces/primeng-issue-template
Current behavior
The documentation for the new p-chip component is that clicking the X button will trigger the (onRemove) event but have found that it is actually (remove). This caused some confusion and meant i had to look into the source code to find out why my event binding wasn't working.
Expected behavior
Users can use the correctly documented event handler.
Minimal reproduction of the problem with instructions
Any attempt to use a p-chip with use of the remove event handler
What is the motivation / use case for changing the behavior?
Keep the component in line with the documentation.
Please tell us about your environment:
VS Code, Windows 10
Angular 11
PrimeNG 11.1.0-RC1
all
all
node --version
=The text was updated successfully, but these errors were encountered: