From c400d11c5c0d5a91fdaccc7701c6f558c76fd3b8 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Fri, 4 Apr 2025 12:36:53 -0400 Subject: [PATCH] Remove dragstart listener from attachment row on destroy Follow-up to e6f1983073a3712e55779b3b1b43f99e915f89e3 --- chrome/content/zotero/elements/attachmentRow.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/elements/attachmentRow.js b/chrome/content/zotero/elements/attachmentRow.js index f7e11abb90..72fc1f705b 100644 --- a/chrome/content/zotero/elements/attachmentRow.js +++ b/chrome/content/zotero/elements/attachmentRow.js @@ -94,6 +94,7 @@ import { getCSSItemTypeIcon } from 'components/icons'; destroy() { this._attachmentButton.removeEventListener('click', this._handleAttachmentClick); + this._attachmentButton.removeEventListener('dragstart', this._handleAttachmentDragStart); this._annotationButton.removeEventListener('click', this._handleAnnotationClick); }