Skip to content

When modal closes, the scroll position changes. #515

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions