ionic-team / ionic-team/ionic-docs
Document that hardware back button event for overlays does not fire if overlay has backdropDismiss set to false
- Ngôn ngữ chính
- MDX
- Star
- 621
- Fork
- 3.2k
- Merge trung bình
- 1 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 86
Mô tả
**URL**
https://ionicframework.com/docs/developing/hardware-back-button
**What is missing or inaccurate about the content on this page?**
Just spent a few hours debugging why my registration for hardware back button, which shows an alert dialog, keeps firing even when the alert dialog was displayed, essentially showing an alert on top of an alert, although I registered it with priority 1 (which is well bellow the 100 assigned to overlays).
Turns out the overlay is registering for back button handling only if backdropDismiss is set to true, and this is NOT mentioned in the docs at all.
See [here](https://github.com/ionic-team/ionic/blob/1decc13cb8d355a6fa32d303271a34550082cada/core/src/utils/overlays.ts#L66) for the actual logic.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.