Skip to content

fix(modal): derive sheet dismissal from drag distance rather than viewport position - #31524

Open
OS-susmitabhowmik wants to merge 8 commits into
nextfrom
ROU-13053-fix-modal-sheet-dismissal
Open

OS-susmitabhowmik wants to merge 8 commits into
nextfrom
ROU-13053-fix-modal-sheet-dismissal

Conversation

@OS-susmitabhowmik

@OS-susmitabhowmik OS-susmitabhowmik commented Oct 2, 2026 •

Copy link
Copy Markdown

Issue number: resolves internal


What is the current behavior?

Dragging a sheet modal upwards dismisses it, depending on where the user's pointer is relative to the viewport height rather than how far they dragged. It happens when the pointer is in the bottom half of the viewport, so it's most noticeable on smaller sheet modals where the whole sheet sits in that area. Swiping up should scroll the content, or expand the sheet if it isn't at its largest breakpoint yet.

What is the new behavior?

Dragging a sheet upwards no longer dismisses it. How open the sheet is now comes from the drag distance over the sheet's own height, so the breakpoint it snaps to and the position it's drawn at come from the same measurement. Sheets with breakpoints in between snap to the nearest one.

Sheets whose only breakpoints are 0 and 1 maintain the current behavior of dismissing on any downward drag. A drag that ends in an upward flick still reopens the sheet, and sheets using canDismiss keep the existing thresholds so an accidental drag can't trigger their callback.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@OS-susmitabhowmik OS-susmitabhowmik added the type: bug a confirmed bug report label Oct 2, 2026
@vercel

vercel Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ionic-framework Ready Ready Preview Oct 2, 2026 9:19pm UTC

Request Review

@github-actions github-actions Bot added the package: core @ionic/core package label Oct 2, 2026

This branch was successfully deployed

1 active deployment
Preview — 648c122c Deployed Oct 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package type: bug a confirmed bug report

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants