octicon-rss(16/)
You've already forked ionic-framework
mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 22:44:13 +08:00
Merge remote-tracking branch 'origin/main' into sp/sync-feature-7.1-with-main
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
octicon-diff(16/tw-mr-1) 397 changed files with 1509 additions and 735 deletions
@@ -61,8 +61,17 @@ export class TabBar implements ComponentInterface {
|
||||
this.selectedTabChanged();
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
this.keyboardCtrl = createKeyboardController((keyboardOpen) => {
|
||||
async connectedCallback() {
|
||||
this.keyboardCtrl = await createKeyboardController(async (keyboardOpen, waitForResize) => {
|
||||
/**
|
||||
* If the keyboard is hiding, then we need to wait
|
||||
* for the webview to resize. Otherwise, the tab bar
|
||||
* will flicker before the webview resizes.
|
||||
*/
|
||||
if (keyboardOpen === false && waitForResize !== undefined) {
|
||||
await waitForResize;
|
||||
}
|
||||
|
||||
this.keyboardVisible = keyboardOpen; // trigger re-render by updating state
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user