-
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(mat chips): When i am removing the last chip then main body scroll is moving which is not happening if i remove other than last chip (CORRECT AND EXPECTED BEHAVIOR). #20434
Comments
I think what's going on here is that the item, which needs to be focused after the current item is removed, goes one row up and once it becomes focused, the browser has to adjust the scroll position so it's completely inside the view. We could resolve it by moving focus a bit later, but it can cause people's unit tests to fail. |
Hi @crisbeto so when can we expect this fix? |
Hi @crisbeto any update or timeline on this? |
Hi @crisbeto any update or any solution for this? |
Hi, I wanted to tell that, This is solved in latest version below is package.json.
|
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. |
Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/matchiplastchipscrollissue?file=src/app/chips-input-example.html
Steps to reproduce:
Expected Behavior
If i remove last chip from first row then scroll should not move.
Actual Behavior
Scroll is moving if i remove last chip from first row.
Environment
SS Description
I have attached a ss below.
Red circle chip If you remove last chip from first row then scroll is moving (arrow marked on scroll)!
Green circle chip If you remove any chip(except last) from first row then scroll is not moving which is correct and expected behavior!
The text was updated successfully, but these errors were encountered: