You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
fix(chips): detect cursor position for selecting previous chip.
* Currently we check the truthyness of the chipBuffer, to confirm that the user is at the beginning of the chip input.
Once he is at the beginning, we select and focus the previous chip, so the user can keep deleting the chips.
* Checking for truthyness is not working, because Angular is trimming all ngModel values for the autocomplete and default chip input.
This caused issues, where users can't delete their spaces in the input anymore.
Checking the cursor position is more appropriated here, and works without affecting the autocomplete.
This allows the autocomplete to work independently without any changes with the `md-chips` component.
Fixes#8750Closes#8791
0 commit comments