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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Reset state on turbo:load and turbo:render
Oliver Günther0ca8007c84ea
diff --git a/frontend/src/stimulus/controllers/beforeunload.controller.ts b/frontend/src/stimulus/controllers/beforeunload.controller.tsindex 6c919e5f22b..68cb99526bd 100644--- a/frontend/src/stimulus/controllers/beforeunload.controller.ts+++ b/frontend/src/stimulus/controllers/beforeunload.controller.ts@@ -12,6 +12,8 @@ export class BeforeunloadController extends ApplicationController {window.addEventListener('beforeunload', this, { signal });document.addEventListener('turbo:before-visit', this, { signal });document.addEventListener('turbo:submit-end', this, { signal });+ document.addEventListener('turbo:load', this, { signal });+ document.addEventListener('turbo:render', this, { signal });document.addEventListener('submit', this, { signal });}@@ -26,6 +28,8 @@ export class BeforeunloadController extends ApplicationController {this.beforeunloadHandler(evt as BeforeUnloadEvent|TurboBeforeVisitEvent);break;case 'turbo:submit-end':+ case 'turbo:load':+ case 'turbo:render':window.OpenProject.pageState = 'pristine';break;case 'submit':