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
I am using Turbo with Rails using the turbo-rails gem. My application has internal links that use an anchor to scroll an important element into view. This works on Chrome and Webkit. However, on Firefox, users end up at the top of the page. When I step through the code, I can see that the correct anchor is scrolled into view, but then the onScroll handler sets the position back to the top of the page. The change to focusElement presented in #1255 (comment) also solves my problem.
The text was updated successfully, but these errors were encountered:
I am using Turbo with Rails using the turbo-rails gem. My application has internal links that use an anchor to scroll an important element into view. This works on Chrome and Webkit. However, on Firefox, users end up at the top of the page. When I step through the code, I can see that the correct anchor is scrolled into view, but then the
onScroll
handler sets the position back to the top of the page. The change tofocusElement
presented in #1255 (comment) also solves my problem.The text was updated successfully, but these errors were encountered: