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

Disable "auto focus/scroll" on edit page #6295

Merged
merged 1 commit into from
Mar 15, 2022

Conversation

mheiman
Copy link
Collaborator

@mheiman mheiman commented Mar 15, 2022

Closes #6293

fix

Technical

Modified initEdit function to only trigger focus and scroll if explicitly requested in URL;
also replaced deprecated substr() call with substring().

Testing

https://openlibrary.org/books/OL35615701M/The_Game/edit

should load the edit page with no jumping.

https://openlibrary.org/books/OL35615701M/The_Game/edit#edition/subtitle

should focus and jump to the edition subtitle field.

Stakeholders

@cdrini @mheiman

Modified initEdit function to only trigger focus and scroll if explicitly requested in URL; also replaced deprecated substr() call with substring().
@cdrini cdrini self-assigned this Mar 15, 2022
@cdrini cdrini added the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Mar 15, 2022
Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

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

Nice! Confirmed it no longer auto-focusses/scrolls. 🎉

(Actually it seems like the eg #edtion/subtitle anchors don't work super reliably)

@cdrini cdrini merged commit 0d18ae7 into internetarchive:master Mar 15, 2022
@mheiman mheiman deleted the 6293/fix/edit_page_jumping branch March 15, 2022 19:04
@jimchamp jimchamp removed the On testing.openlibrary.org This PR has been deployed to testing.openlibrary.org for testing label Apr 2, 2024
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.

Disable "auto focus/scroll" on edit page
3 participants