Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#57028] Fix Removal of a project leaves some js components unusable #16493

Conversation

judithroth
Copy link
Contributor

@judithroth judithroth commented Aug 21, 2024

Ticket

https://community.openproject.org/work_packages/57028

What are you trying to accomplish?

Since this is a redirect and turbo would only replace the DOM contents, some JS events would not work after the contents were replaced. They rely on event handlers being registered and currently this only happens on full DOM load.
So we don't use turbo for this request any more to avoid this situation. There's already another work package to fix the behaviour of these elements, but that would be more work, so to be sure for now we're just using the "fast" solution here.

Merge checklist

  • Added/updated tests => not necessary
  • Added/updated documentation in Lookbook (patterns, previews, etc) => not necessary
  • Tested major browsers (Chrome, Firefox, Edge, ...) => not necessary

@judithroth judithroth changed the title [#57028] Removal of a project leaves some angular components as not c… [#57028] Fix Removal of a project leaves some js components unusable Aug 21, 2024
@judithroth judithroth marked this pull request as ready for review August 21, 2024 09:05
Copy link
Member

@akabiru akabiru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@akabiru akabiru merged commit f3a0db2 into dev Aug 21, 2024
7 checks passed
@akabiru akabiru deleted the implementation/57028-removal-of-a-project-leaves-some-angular-components-as-not-clickable branch August 21, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants