Form in dialog breaks content scrolling separately from actions #12126
Labels
component: dialog
This is the name of the generic UI component, not the React module!
support: question
Community support but can be turned into an improvement
Context
In #6128, the use case of having a
inside a was described. @oliviertassinari referred to 1.x and dialog composition for this. Now we have 1.x and it mostly works. I'm using code very similar to the one that @oliviertassinari posted (adjusted to match new prop names):The only real difference is that my content is a longer form, which may be higher than the viewport.
Expected Behavior
The always remains at the top of the dialog, the always remain at the bottom of the dialog and only the scrolls.
Current Behavior
The entire scrolls, including title and action.
Steps to Reproduce
https://codesandbox.io/s/n70k9mmwvm
Use the code above. Make the window really small until the scroll bar appears.
Remove the and it works (Because the form content is rather small, there's only a brief period where the scrolls, then it hits 0 height and everything has to start scrolling.)
The text was updated successfully, but these errors were encountered: