When using a dialog containing a scroll area component, the expected behavior is that the scroll area should handle scrolling when the dialog is active. However, the following issues occur:
The scroll area within the dialog does not respond to scroll interactions.
In some cases, the background page (outside the dialog) scrolls instead.
This behavior often disrupts the overall scroll functionality of the page, rendering it inconsistent.
This issue appears to occur specifically when combining Dialog and ScrollArea components, leading to broken scroll behavior for both the dialog and the page.
Describe the bug
When using a dialog containing a scroll area component, the expected behavior is that the scroll area should handle scrolling when the dialog is active. However, the following issues occur:
This issue appears to occur specifically when combining
Dialog
andScrollArea
components, leading to broken scroll behavior for both the dialog and the page.Affected component/components
Dialog, ScrollArea
How to reproduce
here's a quick v0 code for the same: https://v0.dev/chat/8TUcPpED3by?b=b_XFselDzUnJH
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting