fix: remove locking closeOnBlur

This commit is contained in:
Antonella Sgarlatta
2021-05-07 18:51:49 -03:00
parent 24eb348b08
commit 461f3ccfa4
4 changed files with 6 additions and 26 deletions

View File

@@ -186,8 +186,7 @@ export class NotesState {
}
async setTrashSelectedNotes(
trashed: boolean,
trashButtonRef: RefObject<HTMLButtonElement>
trashed: boolean
): Promise<void> {
if (trashed) {
const notesDeleted = await this.deleteNotes(false);
@@ -196,8 +195,6 @@ export class NotesState {
this.selectedNotes = {};
this.contextMenuOpen = false;
});
} else {
trashButtonRef.current?.focus();
}
} else {
this.application.changeItems<NoteMutator>(