Skip to content

When modal closes, the scroll position changes. #515

@dungle-scrubs

Description

@dungle-scrubs

Describe the bug

Upon closing a modal, specifically when you're already scrolled all the way to the top, the screen instantly shifts to a specific scroll distance from the top.

Expected behavior

I would expect no scroll to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • Version of react-responsive-modal: 6.4.1
  • Version of react: Preact 10.11.3
  • Browser version: The latest Safari and Chrome, but not the latest Firefox

Sorry I don't have a reproduction yet

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions