Skip to content

Commit

Permalink
Merge pull request #24 from abzokhattab/revert-fix-scroll-with-keyboa…
Browse files Browse the repository at this point in the history
…rd-after-opening-the-pdf

Reverting keyboard scroll fix
  • Loading branch information
amyevans authored Apr 12, 2024
2 parents c427ec9 + 8e87604 commit 9738e3d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const isSafari = () => getBrowser() === 'safari' || isMobileSafari();

type ListRef = {
tabIndex: number;
focus: () => void;
};

/**
Expand All @@ -59,7 +58,6 @@ const setListAttributes = (ref: ListRef | undefined) => {
*/
// eslint-disable-next-line no-param-reassign
ref.tabIndex = -1;
ref.focus();
};

export {getBrowser, isMobileSafari, isSafari, setListAttributes};

0 comments on commit 9738e3d

Please sign in to comment.