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/)
Sean Perkins
2023-06-01 12:10:45 -04:00
gitea-unlock(16/)
octicon-diff(16/tw-mr-1) 397 changed files with 1509 additions and 735 deletions

13
core/src/components/tab-bar/tab-bar.tsx
View File

@@ -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
});
}