bug: ios 15, safari bottom url bar does not expand when tapping multiple inputs
See original GitHub issuePrequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
- v4.x
- v5.x
- v6.x
Current Behavior
On iOS 15 Safari, after dismissing a keyboard for an input with autocomplete, the view doesn’t get reset properly to the proper height resulting in a big space at the bottom of the app that remains until refresh.
Notice that after dismissing the keyboard from a regular input, the height resets fine. Bug seems to only occur after dismissing a keyboard with autocomplete.
https://user-images.githubusercontent.com/4053234/135306987-94ef4052-8430-42f6-aa7a-167044d52c8d.MP4
Expected Behavior
I expect the app to fill the height of the screen after dismissing the keyboard.
Steps to Reproduce
- Create an ionic angular app
- I used
ionic start photo-gallery tabs --type=angular --capacitor
- I used
- Replace content of
tab.page.html
with something like…
<ion-content>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
regular input
<br /><input />
<br />
<br />
telephone input with autocomplete and type
<br />
<input name="phone-number" type="tel" autocomplete="tel"/>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
<h1>this is content</h1>
</ion-content>
<ion-footer>
<ion-toolbar>
<ion-button>footer button</ion-button>
</ion-toolbar>
</ion-footer>
- Run application
- I use
ng serve --host 0.0.0.0
so I can open it on my iPhone.
- Open with Safari on iOS 15 (with tab bar on the bottom)
Code Reproduction URL
https://github.com/chrisventura/photo-gallery
Ionic Info
Ionic:
ionic (Ionic CLI) : 4.8.0 (C:\Users\Chris.Ventura\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 5.8.0
@angular-devkit/build-angular : 12.1.4
@angular-devkit/schematics : 12.2.6
@angular/cli : 12.1.4
@ionic/angular-toolkit : 4.0.0
Capacitor:
capacitor (Capacitor CLI) : 3.2.3
@capacitor/core : 3.2.3
System:
NodeJS : v16.9.1 (C:\Program Files\nodejs\node.exe)
npm : 7.24.0
OS : Windows 10
Additional Information
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Prevent Mobile Safari from presenting toolbar when bottom of ...
The best workaround solution I found (that doesn't require minimal-ui ) is to force the bottom navigation of iOS Safari to always stay...
Read more >iOS 15 Safari: Here's how to get the address bar back on top
In iOS 15, open the Settings app · Tap Safari · Under the “Tabs” section, toggle the selection from Tab Bar to Single...
Read more >How to Fix Safari Address Bar on iOS 15 - YouTube
With the iOS 15 update, Apple has changed the default placement of the address bar in the Safari web browser to be at...
Read more >safari IOS menu bar conflicts with buttons in lower 10% of the ...
This is normal behavior in Mobile Safari, tapping at the bottom will display the various browser options and scroll the web page up ......
Read more >The Accessibility Bugs Introduced and Resolved in iOS 15 ...
When the Safari toolbar is collapsed to the bottom of the screen, VoiceOver finds UI elements which are not visually present and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Good news! I just updated to the iOS 15.2 developer beta, and this issue is resolved there. I will follow up here when iOS 15.2 is generally available. Thanks!
Hi everyone,
iOS 15.2 has been released with this fix in Safari, so I am going to close this out. Thanks for the report!