Temzasse / react-modal-sheet

Flexible bottom sheet component built with Framer Motion to provide buttery smooth UX while keeping accessibility in mind 🪐
https://temzasse.github.io/react-modal-sheet/
MIT License
783 stars 74 forks source link

Re-rendering parent page on sheet close #123

Closed FilipJurkovic closed 1 year ago

FilipJurkovic commented 1 year ago

Hello everyone, This package is giving me quite a headache with re-rendering my scrollable parent page when closing the modal sheet. The problem is that when it closes the page re-scrolls from the top to the previous position. Has anyone encountered this issue before?

Edit: This only happens on IOS mobile devices on all browsers

https://user-images.githubusercontent.com/74533259/234068253-74411948-276f-4526-b7e0-996255c6bb32.MP4

Temzasse commented 1 year ago

Hi 👋🏻

Would it be possible to have reproduction case in CodeSandbox? Do you have some automatic scrolling logic in the parent component?

It's quite difficult to debug what the problem is without a reproduction 🙂

Temzasse commented 1 year ago

Closing due to missing a repro.