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

Commit 920bd82

Browse files
Dariusz Niemczykdbkr
authored andcommitted
Fix resizer for detaching
1 parent d4a4ac5 commit 920bd82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resizer/resizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default class Resizer<C extends IConfig = IConfig> {
8484
}
8585

8686
public detach() {
87-
const attachment = this?.config?.handler.parentElement ?? this.container;
87+
const attachment = this?.config?.handler?.parentElement ?? this.container;
8888
attachment.removeEventListener("mousedown", this.onMouseDown, false);
8989
window.removeEventListener("resize", this.onResize);
9090
}

0 commit comments

Comments
 (0)