Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: IonModal and page transitions on iOS #21773

Closed
pritamsoni-hsr opened this issue Jul 17, 2020 · 13 comments · Fixed by #21780
Closed

bug: IonModal and page transitions on iOS #21773

pritamsoni-hsr opened this issue Jul 17, 2020 · 13 comments · Fixed by #21780
Labels
package: react @ionic/react package
Milestone

Comments

@pritamsoni-hsr
Copy link

Bug Report

Ionic version:

[ ] 4.x
[x] 5.2.3 React

Current behavior:

when IonModal is open the original page on ios devices should follow ios 13 like design which is working fine on ionic angular.
the page transitions on react aren't super smooth like the are with ionic angular.

Expected behavior:

page transitions and modal should follow the new apple apple design patterns on Ionic React like they works with ionic angular.

Steps to reproduce:

Related code:

insert short code snippets here

Other information:

Ionic info:

insert the output from ionic info here
@ionitron-bot ionitron-bot bot added the triage label Jul 17, 2020
@liamdebeasi liamdebeasi added the ionitron: needs reproduction a code reproduction is needed from the issue author label Jul 17, 2020
@ionitron-bot
Copy link

ionitron-bot bot commented Jul 17, 2020

Thanks for the issue! This issue has been labeled as needs reproduction. This label is added to issues that need a code reproduction.

Please provide a reproduction with the minimum amount of code required to reproduce the issue. Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.

For a guide on how to create a good reproduction, see our Contributing Guide.

@ionitron-bot ionitron-bot bot removed the triage label Jul 17, 2020
@roopeshchinnakampalli
Copy link

roopeshchinnakampalli commented Jul 17, 2020

We see the same issue with iOS 14 (Public beta) in Ionic Angular.

@liamdebeasi
Copy link
Contributor

@roopeshreddy That is a different issue. Please see #21613 (comment) for more information.

@pritamsoni-hsr
Copy link
Author

pritamsoni-hsr commented Jul 17, 2020

@liamdebeasi here is the code
and here is the result I'm getting, and here is the expected behaviour for these two modal page-transition last 4 seconds
Tested it on capacitor 2.3 and ios 13.5

@liamdebeasi
Copy link
Contributor

Thanks! The problem with the modal is that you are not selecting the correct element. You should be passing a reference to IonRouterOutlet to presentingElement. The docs are confusing regarding this usage, so I will make sure it gets updated.

What's the problem with the page transitions? I am not seeing any issues with performance.

@liamdebeasi liamdebeasi added needs: reply the issue needs a response from the user and removed ionitron: needs reproduction a code reproduction is needed from the issue author labels Jul 17, 2020
@pritamsoni-hsr
Copy link
Author

Thanks it'd be really helpful.
For the page transition, you can see a smooth hold and swipe back transition in second video, if you do it slow you can feel it, but in the implementation I try to swipe back and it transition back to the initial page immediately.
Performance is the same in both cases, the first one is being preferred as per apple HCI.

@ionitron-bot ionitron-bot bot added triage and removed needs: reply the issue needs a response from the user labels Jul 17, 2020
@liamdebeasi
Copy link
Contributor

Thanks. Swipe to go back not working properly is an existing issue (#20904).

@pritamsoni-hsr
Copy link
Author

Thanks. I got the modal working, maybe I'll update the docs soon.

@liamdebeasi
Copy link
Contributor

I'm working on a documentation update right now, so I will close this issue out once it merges.

@pritamsoni-hsr
Copy link
Author

Thanks

@liamdebeasi liamdebeasi added the package: react @ionic/react package label Jul 17, 2020
@liamdebeasi liamdebeasi added this to the 5.3.0 milestone Jul 17, 2020
@ionitron-bot ionitron-bot bot removed the triage label Jul 17, 2020
@roman-rr
Copy link

@liamdebeasi Does Ionic Framework inherit safari bug with transition, where touchmove return large number for clientX, clientY instead of double ?

@liamdebeasi
Copy link
Contributor

Thanks for the issue. This has been resolved via #21780, and a fix will be available in an upcoming release of Ionic Framework.

@ionitron-bot
Copy link

ionitron-bot bot commented Aug 21, 2020

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Aug 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: react @ionic/react package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants