FIX: Resize-modifier event listener cleanup (#23166)

This commit is contained in:
Jarek Radosz 2023-08-21 14:14:52 +02:00 committed by GitHub
parent 4702df85b2
commit 4a4c91b0a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ export default class ResizableNode extends Modifier {
cleanup() {
this.element
.querySelector(this.resizerSelector)
?.addEventListener("touchstart", this._startResize);
?.removeEventListener("touchstart", this._startResize);
this.element
.querySelector(this.resizerSelector)
?.removeEventListener("mousedown", this._startResize);