Skip to content

[Dialog] Closing a dialog scrolls to the top of the page, on Gatsby website in Safari #21895

@Floriferous

Description

@Floriferous

I'm having a hard time tracking this one down, but for some reason, when I close a modal that has its trigger somewhere in the middle of a page, the scroll position resets to the top of the page.

This happens in a Gatsby website, and only in Safari.

I checked the activeElement right after this happens, and it's the #gatsby-focus-wrapper, not sure if that has something to do with it?

I don't believe we're doing anything fancy with scroll position on the page, so I could use some help to get to the root of this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions