-
Notifications
You must be signed in to change notification settings - Fork 6.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
bug(MatChipInput): On press Backspace button input value added to chips #23128
Labels
area: material/chips
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Comments
crisbeto
added
area: material/chips
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
and removed
needs triage
This issue needs to be triaged by the team
labels
Jul 7, 2021
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Jul 8, 2021
…pace In angular#19700 a flag was introduced whose purpose was to indicate whether focus should be moved from the input to the chips when pressing backspace. The problem is that the flag was only being updated on key presses and on init which means that the state will be incorrect if the value changes programmatically after init. Fixes angular#23128.
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Jul 9, 2021
…pace In angular#19700 a flag was introduced whose purpose was to indicate whether focus should be moved from the input to the chips when pressing backspace. The problem is that the flag was only being updated on key presses and on init which means that the state will be incorrect if the value changes programmatically after init. Fixes angular#23128.
wagnermaciel
pushed a commit
that referenced
this issue
Jul 13, 2021
…pace (#23136) In #19700 a flag was introduced whose purpose was to indicate whether focus should be moved from the input to the chips when pressing backspace. The problem is that the flag was only being updated on key presses and on init which means that the state will be incorrect if the value changes programmatically after init. Fixes #23128.
wagnermaciel
pushed a commit
that referenced
this issue
Jul 13, 2021
…pace (#23136) In #19700 a flag was introduced whose purpose was to indicate whether focus should be moved from the input to the chips when pressing backspace. The problem is that the flag was only being updated on key presses and on init which means that the state will be incorrect if the value changes programmatically after init. Fixes #23128. (cherry picked from commit 6a6712d)
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
Reproduction
Stackblitz with Angular 12.1.1 incorrect behavior: https://stackblitz.com/edit/angular-zb5iff?file=src/app/chips-input-example.html
Stackblitz with Angular 11.x.x and correct behavior: https://stackblitz.com/edit/angular-sehgsv?file=src/app/chips-input-example.html
Steps to reproduce:
add text
button)User may press any other button like cursor keys, delete and after that backspace behave correctly.
Expected Behavior
Delete the last character in the input field
Actual Behavior
Chip immediately added to chips with the current value
Environment
The text was updated successfully, but these errors were encountered: