You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the <SideSheet /> component in the following way
<SideSheetpreventBodyScrolling={true}// could also be `sheet.visible` and it has same effect.onCloseComplete={()=>sheet.close()}width={420}isShown={sheet.visible}position="right"><Profile/></SideSheet>
I'm controlling the visibility of the sheet with a basic hook that toggles sheet.visible via sheet.close() and sheet.open(). This is working as expected.
However, when using the preventBodyScrolling prop, I can no longer scroll on the page after closing the sheet
The text was updated successfully, but these errors were encountered:
malimccalla
changed the title
SideSheet prevents page scroll even after closing when preventBodyScrolling set to trueSideSheet prevents page scroll even after closing, when preventBodyScrolling set to true
Mar 6, 2023
I'm using the
<SideSheet />
component in the following wayI'm controlling the visibility of the sheet with a basic hook that toggles
sheet.visible
viasheet.close()
andsheet.open()
. This is working as expected.However, when using the
preventBodyScrolling
prop, I can no longer scroll on the page after closing the sheetThe text was updated successfully, but these errors were encountered: