ionic-team / ionic-team/ionic-framework

IonModal unable to handle dismiss (onDidDismiss)

Open
#30,171 1 comment 0 reactions 0 assignees View on GitHub
triage
Dominant language
TypeScript
Stars
52.7k
Forks
13.3k
Avg merge
1d 15h
Merged PRs (30d)
51

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.