Commit 82ee330
committed
Prevent accidental sheet dismissal via drag handle area
Material3 wraps the composable passed to ModalBottomSheet's dragHandle slot
in a Modifier.clickable that dismisses an expanded sheet. That clickable is
not covered by sheetGesturesEnabled, so tapping the empty space of the
header (next to the menu actions) closed sheets that explicitly disabled
gestures - Add Principal, Create Calendar, Update Principal Password and
Settings.
When gestures are disabled, render the header as ordinary sheet content and
pass no drag handle at all. The sheet then only closes through its menu
actions or by clicking the scrim outside of it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ACWMSLHFXaEukqSo5KyAF81 parent 7e39f21 commit 82ee330
1 file changed
Lines changed: 9 additions & 1 deletion
File tree
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
85 | 90 | | |
86 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
87 | 95 | | |
88 | 96 | | |
89 | 97 | | |
| |||
0 commit comments