We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have noticed the following behavior:
If a site has html tags with empty id attributes like this: id="", then turbo will scroll to that element after a new page navigation occurs.
id
id=""
Leaving aside the fact that there should be no empty id's, maybe Turbo should only scroll to elements that actually have an id?
The text was updated successfully, but these errors were encountered:
Temporary fix:
document.addEventListener("turbo:before-render", () =>{ document.querySelectorAll("[id]").forEach((el) => { if(el.id === "") el.removeAttribute("id"); }) });
Sorry, something went wrong.
This has been fixed.
No branches or pull requests
I have noticed the following behavior:
If a site has html tags with empty
id
attributes like this:id=""
, then turbo will scroll to that element after a new page navigation occurs.Leaving aside the fact that there should be no empty id's, maybe Turbo should only scroll to elements that actually have an
id
?The text was updated successfully, but these errors were encountered: