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

  1. Open a drawer.

  2. Open a second drawer on top of the first one.

  3. On mobile, grab the Drawer.Handle of the second drawer.

  4. Drag it toward the close button/action.

  5. 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.

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board
🐛

Issues

Date

10 days ago

Author

علی خاکبازان

Subscribe to post

Get notified by email when there are changes.