mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
Fix resizer for detaching
This commit is contained in:
parent
1e1fc64769
commit
d8e7fd3634
@ -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…
x
Reference in New Issue
Block a user