Fix resizer for detaching
This commit is contained in:
parent
d4a4ac5680
commit
920bd82b66
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue