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
Add timeout before scrolling on reload
Mir Bhatia09111815c51b
diff --git a/frontend/src/stimulus/controllers/keep-scroll-position.controller.ts b/frontend/src/stimulus/controllers/keep-scroll-position.controller.tsindex 57ac190247c..17ac82b2cf2 100644--- a/frontend/src/stimulus/controllers/keep-scroll-position.controller.ts+++ b/frontend/src/stimulus/controllers/keep-scroll-position.controller.ts@@ -70,7 +70,9 @@ export default class KeepScrollPositionController extends ApplicationControllerconst content = document.getElementById('content-body');if (content) {- content.scrollTop = parseInt(lastKnownPos, 10);+ setTimeout(() => {+ content.scrollTop = parseInt(lastKnownPos, 10);+ }, 25); // Magic number - unsure why, but fixes the issue of not scrolling on reload}}