-
Notifications
You must be signed in to change notification settings - Fork 9
Drag event needs to be removed only if attached #758
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
dnn-elements/packages/stencil-library/src/components/dnn-modal/dnn-modal.tsx
Lines 61 to 70 in 7893613
| componentDidLoad() { | |
| this.seDrag?.addEventListener("mousedown", this.handleResizeMouseDown); | |
| addEventListener("mouseup", this.handleResizeMouseUp); | |
| } | |
| disconnectedCallback() { | |
| this.seDrag.removeEventListener("mousedown", this.handleResizeMouseDown); | |
| removeEventListener("mouseup", this.handleResizeMouseUp); | |
| } |
Both of the lines above need to be the same (need to add ? to the second one...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working