-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiselect on chips display does not update the model when deleting them from the chip icon #9579
Comments
Also discovered this when I was implementing it. Tried both using the formControlName inside of a reactive form as well as just binding with NgModel. Neither updated the model when removing items using the x inside of the chip |
Here is a question at StackOverflow and here is my workaround, Actually, what is missing is |
…l when deleting them from the chip icon
Besides from that the |
No need to open a new issue, my pull request fixes this current issue for both template druiven and reactive forms |
@andriy101 |
I added onChange emit with new value and the mouse event passed from the template via |
I'm submitting a
[X] bug report
Current behavior
On chips display when you delete a chip by clicking the X button the model doesn't refresh
Expected behavior
Model should be refreshed like when you unclick from the dropdown list.
Minimal reproduction of the problem with instructions
https://primeng-multiselect-demo.stackblitz.io/
The text was updated successfully, but these errors were encountered: