From e963880f4dc8ec822302e2f1778f009fdbebe930 Mon Sep 17 00:00:00 2001 From: Angus Date: Fri, 19 Jul 2024 13:30:47 -0300 Subject: [PATCH 1/2] Fix getLayoutMap() bug --- src/components/utils/keyboard.ts | 13 ++++++++++--- src/components/utils/popover/popover-inline.ts | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/components/utils/keyboard.ts b/src/components/utils/keyboard.ts index 62586d576..65d8e614e 100644 --- a/src/components/utils/keyboard.ts +++ b/src/components/utils/keyboard.ts @@ -47,8 +47,15 @@ export async function getKeyboardKeyForCode(code: string, fallback: string): Pro return fallback; } - const map = await keyboard.getLayoutMap(); - const key = map.get(code); + try { + const map = await keyboard.getLayoutMap(); - return key || fallback; + const key = map.get(code); + + return key || fallback; + } catch (e) { + console.error(e); + + return fallback; + } } diff --git a/src/components/utils/popover/popover-inline.ts b/src/components/utils/popover/popover-inline.ts index a82db45cf..a2fca7ea2 100644 --- a/src/components/utils/popover/popover-inline.ts +++ b/src/components/utils/popover/popover-inline.ts @@ -128,7 +128,7 @@ export class PopoverInline extends PopoverDesktop { protected override showNestedItems(item: PopoverItemDefault | PopoverItemHtml): void { if (this.nestedPopoverTriggerItem === item) { this.destroyNestedPopoverIfExists(); - + this.nestedPopoverTriggerItem = null; return; From 807cf943135e708e665f17598a4207c8dfaf12b9 Mon Sep 17 00:00:00 2001 From: Peter Savchenko Date: Sat, 14 Sep 2024 00:45:43 +0300 Subject: [PATCH 2/2] Update CHANGELOG.md --- docs/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index eacada6dd..5c50865e3 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -3,6 +3,7 @@ ### 2.30.6 – `Fix` – Fix the display of ‘Convert To’ near blocks that do not have the ‘conversionConfig.export’ rule specified +– `Fix` – The Plus button does not appear when the editor is loaded in an iframe in Chrome ### 2.30.5