-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
bug(MatChipGrid): Chips form controls do not update values until focus is achieved and lost #28065
Labels
Comments
chip with autocomplete also have the same issue. did you find any workaround @on-the-brink |
No, no workaround, but I haven't put any effort into this after posting this issue. Just waiting for an official fix. One of my projects is currently updated to @angular/material version 18.2.7 and this is still a problem. |
Hi! Is anybody working on it? Otherwise, I could try to fix it if you don't mind. |
mistrykaran91
added a commit
to mistrykaran91/components
that referenced
this issue
Mar 24, 2025
Currently, when we have chips with form control, the value is updated only when its focused out. This fix will update the value of form control immediately Fixes angular#28065
mistrykaran91
added a commit
to mistrykaran91/components
that referenced
this issue
Mar 24, 2025
Currently, when we have chips with form control, the value is updated only when its focused out. This fix will update the value of form control immediately Fixes angular#28065
mistrykaran91
added a commit
to mistrykaran91/components
that referenced
this issue
Mar 24, 2025
Currently, when we have chips with form control, the value is updated only when its focused out. This fix will update the value of form control immediately Fixes angular#28065
mistrykaran91
added a commit
to mistrykaran91/components
that referenced
this issue
Mar 24, 2025
Currently, when we have chips with form control, the value is updated only when its focused out. This fix will update the value of form control immediately Fixes angular#28065
mistrykaran91
added a commit
to mistrykaran91/components
that referenced
this issue
Mar 24, 2025
Currently, when we have chips with form control, the value is updated only when its focused out. This fix will update the value of form control immediately Fixes angular#28065
mistrykaran91
added a commit
to mistrykaran91/components
that referenced
this issue
Mar 24, 2025
Currently, when we have chips with form control, the value is updated only when its focused out. This fix will update the value of form control immediately Fixes angular#28065
mistrykaran91
added a commit
to mistrykaran91/components
that referenced
this issue
Mar 24, 2025
Currently, when we have chips with form control, the value is updated only when its focused out. This fix will update the value of form control immediately Fixes angular#28065
mistrykaran91
added a commit
to mistrykaran91/components
that referenced
this issue
Mar 28, 2025
Currently, when we have chips with form control, the value is updated only when its focused out. This fix will update the value of form control immediately Fixes angular#28065
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Is this a regression?
The previous version in which this bug was not present was
No response
Description
There are several scenarios where this is a breaking bug:
Reproduction
StackBlitz link: https://stackblitz.com/edit/angular-material-chips-bug-f6octd?file=src%2Fmain.ts
Steps to reproduce:
Expected Behavior
The submit button should receive focus because it is enabled after hitting Enter in the chips field. The chips form control value should be updated immediately when a chip is created.
Actual Behavior
The submit button does not receive focus.
Environment
The text was updated successfully, but these errors were encountered: