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

DEV: update component to be compatible with the Glimmer header #11

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

megothss
Copy link

No description provided.

megothss and others added 2 commits May 24, 2024 14:02

// adding a small timeout to allow the browser to render all elements, otherwise scrollIntoView's
// behavior is inconsistent, only working sometimes
setTimeout(() => {
Copy link
Author

@megothss megothss May 24, 2024

Choose a reason for hiding this comment

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

While using the component, I noticed that scrollIntoView was only working sparingly .

I thought it could be because of Ember re-rendering the component, but it doesn't look like it is the case.

Using schedule("afterRender" , ... did not solve the issue.

The only thing that I tried, and it worked, was adding a small delay to allow the browser to render everything.

The solution is not ideal because, frankly, it is unclear to me why it works exactly, but I didn't want to lose too much time with this.

IMO, it is good enough for now.

@megothss megothss requested a review from CvX May 24, 2024 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants