Temzasse / react-modal-sheet

Flexible bottom sheet component built with Framer Motion to provide buttery smooth UX while keeping accessibility in mind 🪐

Home Page:https://temzasse.github.io/react-modal-sheet/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zIndex should be set to -1 when Sheet is closed

younes0 opened this issue · comments

Otherwise it causes unexpected changes (disabling Embla carousel scrolling for instance)

This is my workaround:

<Sheet
   {...}
    style={{
      zIndex: isOpen ? 1000 : -1,
    }}
 >
 {...}
 </Sheet>

Good suggestion 👍🏻