ionic-team / ionic-team/ionic-framework

bug: Return doesn't work on Modal "Card Modal"

未关闭
#30,821 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
triage
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 14 小时
30 天内合并 PR
50

描述

### 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

On android, i went to chrome ionic kitchen website. And add "icon to my homescreen".
Then i open this shortcut and it open IONIC KITCHEN like a native app.
When i go to modal and click "Open Card Modal".
The native android back button doesn't do anything. So it's misleading for user because when you click on it nothing happen.

### Expected Behavior

When clicking on native android back button, it should go back to the previous page.

### Steps to Reproduce

See above

### Code Reproduction URL

https://docs-demo.ionic.io/

### Ionic Info

/

### Additional Information

On newer version of android, the modal remain visible but the back page return.
On old version of android, the back button does nothing. i can click 10 time and i will always see the modal.

贡献指南

打开贡献指南

调研方向

首先,在将网站添加到主屏幕后,使用 Android Chrome 访问 https://docs-demo.ionic.io/ 复现该问题,然后打开 Modal "Card Modal",并在不同 Android 版本上测试原生返回按钮。跟踪 modal 的返回导航处理;当返回按钮能够始终关闭 modal 或返回上一页,且不会让 modal 保持可见时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
frontend, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。