Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6670 from matrix-org/palid/fix/difficult-to-grab-…
Browse files Browse the repository at this point in the history
…scrollbar

Fix resizer for detaching
  • Loading branch information
Palid authored Aug 24, 2021
2 parents c2a410c + d8e7fd3 commit 4d7b6f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resizer/resizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default class Resizer<C extends IConfig = IConfig> {
}

public detach() {
const attachment = this?.config?.handler.parentElement ?? this.container;
const attachment = this?.config?.handler?.parentElement ?? this.container;
attachment.removeEventListener("mousedown", this.onMouseDown, false);
window.removeEventListener("resize", this.onResize);
}
Expand Down

0 comments on commit 4d7b6f3

Please sign in to comment.