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

@@ -190,7 +190,7 @@ export class BubbleMenuView {
destroy() {
this.tippy?.destroy()
this.element.removeEventListener('mousedown', this.mousedownHandler)
this.element.removeEventListener('mousedown', this.mousedownHandler, { capture: true })
this.view.dom.removeEventListener('dragstart', this.dragstartHandler)
this.editor.off('focus', this.focusHandler)
this.editor.off('blur', this.blurHandler)