You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: autofocus input causes modal animation be incorrect on ios #18257
Reacted by Pascal Graf, Shlomo Morosow, Tobias Neumann, Andreas Greimel, johannesf95, Moritz A. Vieli, Alexander Trakhimenok, Dave Gööck, Thomas Brus, Tim Schmidt and 1 more
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.
This issue appears to be due to a bug in WebKit (the engine that powers Safari) where autofocus causes animations to be run incorrectly. I will look into filing an issue with the WebKit team.
As of now, I am not aware of a workaround but I will post here if I find one.
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.
changed the title [-]bug: autofocus input causes modal to disappear on ios[/-][+]bug: autofocus input causes modal animation be incorrect on ios[/+]on Feb 18, 2022
Activity
calendee commentedon Sep 29, 2019
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.

sagrawal31 commentedon Nov 20, 2019
We are also facing this issue. We are using latest version of
@ionic/angular,cordova-plugin-ionic-webviewandcordova-plugin-ionic-keyboardaaadipop commentedon Nov 26, 2019
same here
cytrics commentedon Sep 15, 2020
I still have the problem. is there a solution now?
System:
Ionic:
Ionic CLI : 6.11.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.2.3
@angular-devkit/build-angular : 0.901.11
@angular-devkit/schematics : 9.1.11
@angular/cli : 9.1.11
@ionic/angular-toolkit : 2.2.0
Capacitor:
Capacitor CLI : 2.2.1
@capacitor/core : 2.2.1
Cordova:
Cordova CLI : 10.0.0
Cordova Platforms : ios 5.1.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 7 other plugins)
liamdebeasi commentedon Dec 3, 2020
Hi everyone,
This issue appears to be due to a bug in WebKit (the engine that powers Safari) where
autofocuscauses animations to be run incorrectly. I will look into filing an issue with the WebKit team.As of now, I am not aware of a workaround but I will post here if I find one.
flavioribeirojr commentedon Jan 11, 2021
Did anyone found a solution or workaround for this?
liamdebeasi commentedon Jan 11, 2021
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
jaminm commentedon Sep 16, 2021
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: autofocus input causes modal to disappear on ios[/-][+]bug: autofocus input causes modal animation be incorrect on ios[/+]