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:
@@ -332,6 +332,9 @@ class FooterViewCtrl extends PureViewCtrl<{}, {
|
|||||||
areas: [ComponentArea.Rooms, ComponentArea.Modal],
|
areas: [ComponentArea.Rooms, ComponentArea.Modal],
|
||||||
focusHandler: (component, focused) => {
|
focusHandler: (component, focused) => {
|
||||||
if (component.isEditor() && focused) {
|
if (component.isEditor() && focused) {
|
||||||
|
if (component.package_info?.identifier === 'org.standardnotes.standard-sheets') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.closeAllRooms();
|
this.closeAllRooms();
|
||||||
this.closeAccountMenu();
|
this.closeAccountMenu();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user