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

Fix ScrollYOffset reset when not using a selector #163

Merged
merged 2 commits into from
Apr 4, 2022

Conversation

jeff1010322
Copy link
Contributor

This change keeps the existing logic for setting scrollYOffset to 0 when a selector is used to prevent the redoc warning. But it no longer sets the offset to 0 if using a number of function.

Fix for #162

@changeset-bot
Copy link

changeset-bot bot commented Apr 4, 2022

🦋 Changeset detected

Latest commit: 501e98c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
docusaurus-theme-redoc Patch
redocusaurus Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Apr 4, 2022

Someone is attempting to deploy a commit to a Personal Account owned by @rohit-gohri on Vercel.

@rohit-gohri first needs to authorize it.

@rohit-gohri rohit-gohri added bug Something isn't working styles labels Apr 4, 2022
@vercel
Copy link

vercel bot commented Apr 4, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/rohit-gohri/redocusaurus/7SifKKEgwFTuTqNFhHiBKynqC2bc
✅ Preview: https://redocusaurus-git-fork-jeff1010322-fix-offset-issue-rohit-gohri.vercel.app

@rohit-gohri rohit-gohri merged commit 420c404 into rohit-gohri:main Apr 4, 2022
@github-actions github-actions bot mentioned this pull request Apr 4, 2022
@jeff1010322 jeff1010322 deleted the fix-offset-issue branch April 4, 2022 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working styles
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants