Drawer.Handle closes all stacked drawers and breaks animation
When using Drawer.Handle with multiple drawers open at the same time, dragging the handle of the top/second drawer to the close action causes all open drawers to close, instead of only closing the drawer being interacted with.
Additionally, the close transition is not smooth: the expected drawer animation does not play correctly when the drawer is closed through Drawer.Handle while multiple drawers are open.
Steps to reproduce
Open a drawer.
Open a second drawer on top of the first one.
On mobile, grab the
Drawer.Handleof the second drawer.Drag it toward the close button/action.
Release it.
Expected behavior
Only the drawer associated with the dragged Drawer.Handle should close, with the normal close animation playing smoothly.
Actual behavior
All currently open drawers are closed, and the closing animation does not behave smoothly/correctly.
This appears to be related to how Drawer.Handle resolves the active drawer when multiple drawers are mounted/open simultaneously.
Log in to comment and vote
No comments yet
Be the first to share your thoughts.