Skip to content
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

Run scroll command via Angular afterRender hook #1182

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

richard-to
Copy link
Collaborator

Finally got a chance to test out the afterRender suggestion. It seems to work.

Closes #1121

Copy link
Collaborator

@wwwillchen wwwillchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checking, were you able to run a playwright test N times, just to see whether the flakiness issue with scrolling is solved?

Also, neat that this worked! Thanks.

console.error(
`Could not scroll to component with key ${this.commandScrollKey} because no component found`,
);
return;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably would be good to do this before the return:
this.commandScrollKey = '';

this branch is already an edge case, but having the command scroll key somehow run in a future render loop when the the target element exists, seems like an even more bizzare edge case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chat component's auto-scroll not working when used with a web component
2 participants