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

[Bug]: Overlay Drawer Component Does Not Restore Scroll Position When Closed #31334

Closed
2 tasks done
buzzo123 opened this issue May 10, 2024 · 1 comment · Fixed by #31367
Closed
2 tasks done

[Bug]: Overlay Drawer Component Does Not Restore Scroll Position When Closed #31334

buzzo123 opened this issue May 10, 2024 · 1 comment · Fixed by #31367

Comments

@buzzo123
Copy link

Library

React Components / v9 (@fluentui/react-components)

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 884.71 MB / 15.25 GB
  Browsers:
    Edge: Chromium (123.0.2420.97)
    Internet Explorer: 11.0.19041.3636

Are you reporting Accessibility issue?

None

Reproduction

Overlay Drawer Component Does Not Restore Scroll Position When Closed

Bug Description

Issue Description:

The overlay drawer component in the React library does not restore the scroll position of the page when closed. This issue can lead to users being stuck in a scrolled position, causing inconvenience and a poor user experience.

Steps to Reproduce:

  1. Visit the documentation page for the overlay drawer component: Overlay Drawer Component Documentation
  2. Open the overlay drawer by interacting with the relevant UI element.
  3. Close the overlay drawer by clicking on the close button or any other interaction method.
  4. Notice that the page doesn't scroll anymore.

Expected Behaviour:

After closing the overlay drawer, the page should automatically restore to its scroll behaviour before the drawer was opened.

Actual Behaviour:

The page's scroll position does not revert to its original state upon closing the overlay drawer. Users may remain stuck in the page, need a refresh to restore the scroll bar.

Logs

No response

Requested priority

Blocking

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
@marcosmoura
Copy link
Contributor

This is a regression that we've caught and fixed. Should be available in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants