Skip to content

Keep swipe to dismiss box until dialog is dismissed - #177

Merged
patrickunterwegs merged 4 commits into
mainfrom
Keep-swipe-to-dismiss-box-until-dialog-is-dismissed
Oct 14, 2026
Merged

patrickunterwegs merged 4 commits into
mainfrom
Keep-swipe-to-dismiss-box-until-dialog-is-dismissed

Conversation

@patrickunterwegs

Copy link
Copy Markdown
Member

No description provided.

patrickunterwegs and others added 4 commits October 12, 2026 22:11
- ListItem/TaskListItem: pass a stable onDismiss to SwipeToDismissBox.
  It re-invokes onDismiss whenever the lambda instance changes while the
  box is still dismissed, which re-opened the delete dialog after a
  recomposition of the caller.
- List screens: swiping now always selects the entry (new
  ListAction.OnSwipeToDelete) instead of toggling it. Toggling deselected
  an already selected entry, so deletePending stayed false and the box
  never reset; with a single selection the dialog flag stayed set with no
  dialog shown.
- DetailsViewModel: always clear deleteSubtaskId on confirm, even if
  editing is not allowed, so the dialog and swiped subtask can't hang.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KTnrG9jFBbwf8oPiZKq312
@patrickunterwegs
patrickunterwegs merged commit 85a4c84 into main Oct 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants