Closed sreenath-here closed 5 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
19-react-dev | ❌ Failed (Inspect) | Jun 15, 2024 11:35am | ||
react-dev | ❌ Failed (Inspect) | Jun 15, 2024 11:35am |
I have resolved the issue by adding state property in the "search.tsx", But while running locally in my system I got error about missing Author, Date, Description details in the "index.md" blog. So I have added them locally and ran the application, But while committing to github I haven't committed them, I guess that's the reason the pull request failed at vercel deployment.
Description:
This pull request addresses an issue where the website would scroll back to the top of the page after closing the Algolia search bar, regardless of the user's initial position on the page.
Issue:
Whenever the Algolia search bar is activated or clicked, and then subsequently closed, the page scrolls back to the top. This disrupts the user's experience, especially if they were in the middle of reading content further down the page.
Solution:
The following changes were made to resolve this issue:
Changes:
Testing:
Tested on multiple pages to ensure the scroll position is correctly maintained after closing the search bar. Verified that the fix does not introduce any new issues or regressions.
Screenshots:
Before:
https://github.com/reactjs/react.dev/assets/122635878/a94961fc-c726-48aa-94ec-fddb67b4790d
After:
https://github.com/reactjs/react.dev/assets/122635878/855e4c7b-6767-42cb-a25b-3ed15e1ce36e