bug: Tab bar is unhidden too quickly after keyboard dismiss
See original GitHub issuePrerequisites
- 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
- Nightly
Current Behavior
When the keyboard is dismissed the tab bar temporarily flashes on the screen as it is unhidden before the webview has expanded back to the full size of the viewport.
Expected Behavior
The tab bar should not be unhidden until the web view has expanded back to its full size so that the tab bar does not flash in the center of the screen.
Steps to Reproduce
Use the default capacitor keyboard config:
// capacitor-config.ts
Keyboard: {
resize: KeyboardResize.Native,
resizeOnFullScreen: true,
},
This happens on any page with an IonTabBar
.
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 6.20.1 (/usr/local/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/react 6.2.8
Capacitor:
Capacitor CLI : 4.3.0 @capacitor/android : not installed @capacitor/core : 4.3.0 @capacitor/ios : 4.3.0
Utility:
cordova-res : not installed globally native-run : 1.7.0
System:
NodeJS : v16.14.2 (/usr/local/bin/node) npm : 8.7.0 OS : macOS Monterey
Additional Information
No response
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top GitHub Comments
We just ran into this too (cc @mlynch )
@aginvlad thanks for sharing. I seem to see the tab bar flash still because the tab bar is being unhidden a little too soon so I have changed the timeout delay to 100ms and seems to work consistently. The full code for anybody interested:
@liamdebeasi can you give any insight into when this issue will be resolved in production?