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
When using the <Drawer> component with the blockScroll property enabled, there's a noticeable delay between opening the drawer and blocking the scroll on the body.
Specifically, the body remains scrollable during the entrance animation, and the scroll lock only applies after the animation finishes. This creates a flicker/glitch and allows users to scroll the background content momentarily, which breaks the expected modal behavior.
Expected behavior
As soon as the drawer is triggered to open, the scroll lock (overflow: hidden or equivalent) should be applied to the bodybefore or at the same time the entrance animation begins — not after it ends.
Steps to reproduce
Enable blockScroll on the Drawer.
Open the Drawer (on a view with overflow-y).
Try scrolling the background during the entrance animation.
You'll notice scroll is possible until the animation ends.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
When using the
<Drawer>component with theblockScrollproperty enabled, there's a noticeable delay between opening the drawer and blocking the scroll on thebody.Specifically, the
bodyremains scrollable during the entrance animation, and the scroll lock only applies after the animation finishes. This creates a flicker/glitch and allows users to scroll the background content momentarily, which breaks the expected modal behavior.Expected behavior
As soon as the drawer is triggered to open, the scroll lock (
overflow: hiddenor equivalent) should be applied to thebodybefore or at the same time the entrance animation begins — not after it ends.Steps to reproduce
blockScrollon the Drawer.Beta Was this translation helpful? Give feedback.
All reactions