ionic-team / ionic-team/ionic-framework

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

Open
#30,821 0 comments 0 reactions 0 assignees View on GitHub
triage
Dominant language
TypeScript
Stars
52.7k
Forks
13.3k
Avg merge
1d 15h
Merged PRs (30d)
51

Description

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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue at https://docs-demo.ionic.io/ in Android Chrome after adding the site to the home screen, then open the Modal "Card Modal" and test the native back button on Android versions. Trace the modal's back-navigation handling; done means the back button consistently dismisses the modal or returns to the previous page without leaving the modal visible.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.