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
ngModelChange fires twice on mat-chip-listbox #26942
Labels
area: material/chips
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Comments
Hi, you should post your issue on the components repo. I just checked the code, the component does indeed explicitly emit a change on on |
crisbeto
added
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
area: material/chips
labels
Apr 20, 2023
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Apr 20, 2023
Fixes that the chips listbox was emitting change events both when a chip is toggled and when the listbox is blurred. Fixes angular#26942.
angular-robot bot
pushed a commit
that referenced
this issue
Apr 20, 2023
Fixes that the chips listbox was emitting change events both when a chip is toggled and when the listbox is blurred. Fixes #26942.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area: material/chips
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
No
Description
ngModelChange on the material chip listbox is not only triggered when selecting a value, but also a second time when clicking anywhere in the browser window with the mouse.
The occurs only once and with the first mouse-click after a previous value has been selected. The thereby emitted value is the same as the previous one.
It does not occur when clicking on another chip with the next mouse-click.
Steps to reproduce:
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/angular-gcasi5?file=src/app/chips-overview-example.ts
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: