Skip to content

feat: swipe-to-close should support e.detail.snapBreakpoint #31001

Closed

Description

@aeharding

Prerequisites

Describe the Feature Request

Sheet modals support the new snapBreakpoint parameter. It would be great if swipe-to-close dialogs also supported this parameter, so we could know if the dialog intends to continue animating to dismiss or not.

Describe the Use Case

Dismiss the keyboard when the user lifts their finger during a gesture, if the dialog will animate to dismissal.

Describe Preferred Solution

e.detail.snapBreakpoint (would just be 1 or 0) or something like that on ionDragEnd

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

Activity

  1. added a commit that references this issue on Mar 8, 2026
    e9f92a4
  2. thetaPC commented on Mar 9, 2026

    @thetaPC
    Contributor

    Thank you for the feature request!

    Can you elaborate on why progress is not possible to be used? snapBreakpoint is meant for sheet modals as those have breakpoints. The more information that we can get then the better we can understand to provide a good solution.

  3. aeharding commented on Mar 9, 2026

    @aeharding
    ContributorAuthor

    Hi @thetaPC!

    The idea is, when you lift your finger on a swipe down, the modal can either:

    1. Not dismiss (you didn't swipe far enough nor with enough momentum), or
    2. Dismiss (you swiped far enough and/or with enough momentum)

    progress just exposes the absolute amount that the dialog has closed, but does not expose information on where the dialog intends to animate to (either closing or remaining open).

    You can see usage here in Voyager: aeharding/voyager#2227

    Basically, if you swipe down I can start closing the keyboard at the moment you lift your finger from the screen, because snapBreakpoint would expose where Ionic intends to animate the dialog to (closing or remaining open)

  4. thetaPC commented on Mar 17, 2026

    @thetaPC
    Contributor

    @aeharding Thanks again for the feature request!

    The team discussed this internally, and we agree that this would be a great addition to the framework.

    Regarding the timeline, we have officially shifted our focus toward the future. As mentioned in the Ionic Framework 8.8 announcement, v8.8 marks the final minor release for the Ionic 8 lifecycle.

    Because of this, we are no longer merging new features into v8. To ensure this is considered for the next major evolution of the framework, could you please change the base of your PR to the major-9.0 branch (instead of main)?

    Once the base is updated, it will be in the right place for the team to take a look as we continue planning for Ionic 9.

  5. added
    type: feature request
    on Mar 17, 2026
  6. added a commit that references this issue on Mar 17, 2026
    c200d78
  7. aeharding commented on Mar 17, 2026

    @aeharding
    ContributorAuthor

    No prob :) done

  8. added a commit that references this issue on Aug 7, 2026
    88661e3
  9. thetaPC commented on Aug 7, 2026

    @thetaPC
    Contributor

    Thank you for submitting the feature request! The PR for this has been approved and it will be released in v9.

  10. ionitron-bot commented on Sep 18, 2026

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  11. locked and limited conversation to collaborators on Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: feature request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions