Skip to content

Commit bb207ae

Browse files
committed
Use connectedCallback instead of constructor
1 parent daec108 commit bb207ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/file-attachment-element.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import Attachment from './attachment'
22

33
export default class FileAttachmentElement extends HTMLElement {
4-
constructor() {
5-
super()
4+
connectedCallback(): void {
65
this.addEventListener('dragenter', onDragenter)
76
this.addEventListener('dragover', onDragenter)
87
this.addEventListener('dragleave', onDragleave)

0 commit comments

Comments
 (0)