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 👍🏻