Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

remove editorEscape event listener on disconnect

Kabiru Mwenja2af602f9c04c
diff --git a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
index 08e36601da1..0269a7bd98b 100644
--- a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
@@ -572,6 +572,7 @@ export default class IndexController extends Controller {
const editorElement = this.getCkEditorElement();
if (editorElement) {
editorElement.removeEventListener('saveRequested', this.onSubmitBound);
+ editorElement.removeEventListener('editorEscape', this.onEscapeEditorBound);
editorElement.removeEventListener('editorKeyup', this.adjustMarginBound);
editorElement.removeEventListener('editorBlur', this.onBlurEditorBound);
editorElement.removeEventListener('editorFocus', this.onFocusEditorBound);