Remove dragstart listener from attachment row on destroy

Follow-up to e6f1983073
This commit is contained in:
Abe Jellinek 2025-04-04 12:36:53 -04:00
parent e6f1983073
commit c400d11c5c

View file

@ -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);
}