FIX: Resize-modifier event listener cleanup (#23166)
This commit is contained in:
parent
4702df85b2
commit
4a4c91b0a1
|
@ -42,7 +42,7 @@ export default class ResizableNode extends Modifier {
|
||||||
cleanup() {
|
cleanup() {
|
||||||
this.element
|
this.element
|
||||||
.querySelector(this.resizerSelector)
|
.querySelector(this.resizerSelector)
|
||||||
?.addEventListener("touchstart", this._startResize);
|
?.removeEventListener("touchstart", this._startResize);
|
||||||
this.element
|
this.element
|
||||||
.querySelector(this.resizerSelector)
|
.querySelector(this.resizerSelector)
|
||||||
?.removeEventListener("mousedown", this._startResize);
|
?.removeEventListener("mousedown", this._startResize);
|
||||||
|
|
Loading…
Reference in New Issue