-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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: autofocus input causes modal animation be incorrect on ios #18257
Comments
I am observing the same problem in Ionic React RC2/RC3 on mobile devices only. If the device is rotated to landscape and then back, the "bad" modal displays properly. Demo: https://ionic-react-auto-focus-modal-bug.netlify.com Reproducible Sample: https://github.com/calendee/ionic-react-auto-focus-modal-bug/tree/master Here's a demo of it - watch to the end - sorry it's really slow to demonstrate the whole problem. |
We are also facing this issue. We are using latest version of |
same here |
I still have the problem. is there a solution now? System: Ionic: Ionic CLI : 6.11.1 (/usr/local/lib/node_modules/@ionic/cli) Capacitor: Capacitor CLI : 2.2.1 Cordova: Cordova CLI : 10.0.0 |
Hi everyone, This issue appears to be due to a bug in WebKit (the engine that powers Safari) where As of now, I am not aware of a workaround but I will post here if I find one. |
Did anyone found a solution or workaround for this? |
No workaround at the moment. I reported this to the WebKit team, and they can reproduce it on their end: https://bugs.webkit.org/show_bug.cgi?id=219506 |
Same here, caused the modal to jump up past the top of the screen then back down, removed autofocus and it animates correctly. This only happened on iOS phones, Safari and Chrome. |
Bug Report
Ionic version:
[x] 4.x
Current behavior:
The same issue as reported in #16136:
When setting autofocus on an ion-input element in a modal in ios, the modal content disappears.
Expected behavior:
The modal content does not disappear.
Steps to reproduce:
const modal = await this.modalController.create({...
Related code:
modal.component.html
:Other information:
Related issue: #16136
Ionic info:
The text was updated successfully, but these errors were encountered: