linkedin / linkedin/self-focused

window.scrollTo doesn't work after focus is set on Safari 12

Open
#10 0 comments 0 reactions 1 assignee View on GitHub

@sarbbottam is already working on this.

Since Jan 12, 2019.

Dominant language
JavaScript
Stars
35
Forks
9
PR merge metrics
No merged PRs in 30d

Description

On Safari 12 (and later), after focus is set in `focus-manager.js`'s `_setFocus()`, `window.scrollTo(scrollX, scrollY)` doesn't seem to work. This causes a page to scroll down to the focused element even when scrollY is 0.

A similar issue has been reported on stackoverflow: https://stackoverflow.com/questions/52652469/prevent-safari-from-automatically-scrolling-to-focused-element-scrollback-techn

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.