Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
fix: hotkeys not unbind
Browse files Browse the repository at this point in the history
  • Loading branch information
benyueer committed Apr 1, 2024
1 parent 8e5aba5 commit fec181f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/stores/Annotation/Annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ export const Annotation = types

beforeDestroy() {
self.autosave && self.autosave.cancel && self.autosave.cancel();
hotkeys.unbindAll();
},

setDraftId(id) {
Expand Down

0 comments on commit fec181f

Please sign in to comment.