From d1e0101675cb09a8a963b9e07a222e1ac89b2b49 Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Mon, 26 Oct 2020 15:02:03 +0100 Subject: [PATCH] fix: prevent closing rooms when spreadsheet editor takes focus When using =sum() the spreadsheet editor force-takes focus, thus closing all opened rooms. This is a hack fix that warrants a deeper design changes to address the underlying issue. --- app/assets/javascripts/views/footer/footer_view.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/views/footer/footer_view.ts b/app/assets/javascripts/views/footer/footer_view.ts index cc1bf92f9..1e17b156c 100644 --- a/app/assets/javascripts/views/footer/footer_view.ts +++ b/app/assets/javascripts/views/footer/footer_view.ts @@ -332,6 +332,9 @@ class FooterViewCtrl extends PureViewCtrl<{}, { areas: [ComponentArea.Rooms, ComponentArea.Modal], focusHandler: (component, focused) => { if (component.isEditor() && focused) { + if (component.package_info?.identifier === 'org.standardnotes.standard-sheets') { + return; + } this.closeAllRooms(); this.closeAccountMenu(); }