diff --git a/plugins/chat/assets/javascripts/discourse/modifiers/chat/resizable-node.js b/plugins/chat/assets/javascripts/discourse/modifiers/chat/resizable-node.js index 41f1bdf32cb..3f3d412427f 100644 --- a/plugins/chat/assets/javascripts/discourse/modifiers/chat/resizable-node.js +++ b/plugins/chat/assets/javascripts/discourse/modifiers/chat/resizable-node.js @@ -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);