Document that hardware back button event for overlays does not fire if overlay has backdropDismiss set to false

オープン 初心者向け
#1,498 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
70/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
停滞
領域
documentation

調査の方向性

リンク先のURLにあるハードウェアの戻るボタンのドキュメントを開き、そのオーバーレイの動作を、66行目付近の core/src/utils/overlays.ts と比較してください。backdropDismiss が false の場合、オーバーレイはハードウェアの戻るボタンの処理に登録されないことを記載し、そのページがこの優先動作を正確に説明していることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

content

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 for the actual logic.

主要言語
MDX
スター
621
フォーク
3.2k
平均マージ
1日 2時間
マージ済み PR(30日)
86

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ionic-team/ionic-docs のほかの issue

ionic-team/ionic-docs の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。