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
exclude OP custom dom elements from being morphed
ulferts4bd144d07948
diff --git a/frontend/src/turbo/turbo-global-listeners.ts b/frontend/src/turbo/turbo-global-listeners.tsindex 1b715fe5c1b..0f379be5681 100644--- a/frontend/src/turbo/turbo-global-listeners.ts+++ b/frontend/src/turbo/turbo-global-listeners.ts@@ -64,4 +64,13 @@ export function addTurboGlobalListeners() {activateFlashNotice();activateFlashError();});++ document.addEventListener('turbo:before-morph-element', (event) => {+ const element = event.target as HTMLElement;++ // In case the element is an OpenProject custom dom element, morphing is prevented.+ if (element.tagName.startsWith('OPCE-')) {+ event.preventDefault();+ }+ });}