fix: note flickering and multiple selection staying enabled after browser shortcut

This commit is contained in:
Antonella Sgarlatta
2021-05-17 16:45:00 -03:00
parent 4fc2c58daf
commit c6e4c2fcf5
2 changed files with 16 additions and 7 deletions

View File

@@ -278,7 +278,7 @@ class NotesViewCtrl extends PureViewCtrl<unknown, NotesCtrlState> {
const discarded = activeNote.deleted || activeNote.trashed;
if (discarded && !this.appState?.selectedTag?.isTrashTag) {
this.selectNextOrCreateNew();
} else {
} else if (!this.state.selectedNotes[activeNote.uuid]) {
this.selectNote(activeNote);
}
} else {