ionic-team / ionic-team/ionic-framework

bug: CloseWatcher API Prevents Navigation When No Overlays Are Present in Chromium v126

オープン
#29,648 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
package: core type: bug
主要言語
TypeScript
スター
52.7k
フォーク
13.3k
平均マージ
1日 15時間
マージ済み PR(30日)
51

説明

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v8.x

### Current Behavior

Hello,

I recently noticed that the CloseWatcher API, which had been removed, is now back in Chromium version 126. After testing this feature, I found it to be working very well overall. However, I encountered an issue:

When no overlays are present on the page, I am unable to navigate back to the previous page. This seems to be a bug.

Could you please look into this issue? Thank you for your assistance.

### Expected Behavior

The CloseWatcher API should only be active when overlays are present, allowing normal navigation when there are no overlays.

### Steps to Reproduce

1- Clone the repository and navigate to the project directory.
2- Enable `experimentalCloseWatcher` option.
3- Run the command `npm run start` to start the application.
4- Open a mobile browser and navigate to any page with overlays, such as `src/components/modal`.
5- Close all overlays.
6- Try to navigate back to the previous page using the back button on your mobile device.

### Code Reproduction URL

#

### Ionic Info

v8.2.2

Android Chrome v126

### Additional Information

_No response_

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

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

評価

この issue はまだ評価されていません。

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

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