ionic-team / ionic-team/ionic-framework

IonModal unable to handle dismiss (onDidDismiss)

未关闭
#30,171 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
triage
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 15 小时
30 天内合并 PR
51

描述

I have a simple modal with controlled `isOpen` state:

` { alert('DID') }} presentingElement={presentingElement}>`

On iOS the modal is dismissable with a gesture due to `presentingElement`, which needs to be handled.
`onDidDismiss` does not fire.
Documentation is saying that this returns a promise. I tried to handle it via `ref.current.onDidDismiss().then(...` but no avail.

贡献指南

打开贡献指南

调研方向

Start by reproducing the controlled IonModal example with isOpen, presentingElement, and onDidDismiss on iOS. Check the gesture-dismiss path and compare it with the documented ref.current.onDidDismiss() promise behavior. Done means the callback or promise reliably reports a gesture dismissal.

由索引模型根据 Issue 内容生成。

评估

技术栈
ios, react, typescript
领域
frontend, mobile-dev
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。