We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
connectedCallback
constructor
1 parent daec108 commit bb207aeCopy full SHA for bb207ae
src/file-attachment-element.ts
@@ -1,8 +1,7 @@
1
import Attachment from './attachment'
2
3
export default class FileAttachmentElement extends HTMLElement {
4
- constructor() {
5
- super()
+ connectedCallback(): void {
6
this.addEventListener('dragenter', onDragenter)
7
this.addEventListener('dragover', onDragenter)
8
this.addEventListener('dragleave', onDragleave)
0 commit comments