-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Jarek Radosz <[email protected]>
|
||
// adding a small timeout to allow the browser to render all elements, otherwise scrollIntoView's | ||
// behavior is inconsistent, only working sometimes | ||
setTimeout(() => { |
There was a problem hiding this comment.
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.
No description provided.