fix: Fix "destory" method in view plugins. (#1882)

This commit is contained in:
Kane Cohen
2021-09-22 12:28:52 +01:00
committed by GitHub
parent 39e1be59bb
commit 33420f4ae0
2 changed files with 2 additions and 2 deletions

View File

@@ -160,7 +160,7 @@ export class FloatingMenuView {
destroy() {
this.tippy?.destroy()
this.element.removeEventListener('mousedown', this.mousedownHandler)
this.element.removeEventListener('mousedown', this.mousedownHandler, { capture: true })
this.editor.off('focus', this.focusHandler)
this.editor.off('blur', this.blurHandler)
}