ionic-team / ionic-team/ionic-framework

IonModal unable to handle dismiss (onDidDismiss)

Đang mở
#30,171 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
triage
Ngôn ngữ chính
TypeScript
Star
52.7k
Fork
13.3k
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
51

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.