Skip to content

Drag event needs to be removed only if attached #758

@valadas

Description

@valadas

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions