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.