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.
This commit is contained in:
Baptiste Grob
2020-10-26 15:02:03 +01:00
parent 2e7b98fe54
commit d1e0101675

View File

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