-
Notifications
You must be signed in to change notification settings - Fork 6
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
bugfix/437-close-project-modal-on-navigation #456
bugfix/437-close-project-modal-on-navigation #456
Conversation
…they use browser navigation
This solution works 90% of the time, there is one race condition. I will try to explain what's going on.
This flow works as expected but we still have the normal behavior of the modal where it closes when you click the backdrop
The problem occurs when the user closes the modal using the browser navigation and then instantly clicks a new one. This causes a race condition between the modal.onHide listener and the onPopState event listener. The history.back() is called by the onHide listener but then the onPopState tries to close the modal too which does exist at this time because the user already opened a new modal before the onPopState listener completed running. |
…they use browser navigation
…n-navigation' into bugfix/437-close-project-modal-on-navigation # Conflicts: # src/app/modules/project/overview/overview.component.ts
I discussed this with Ruben and we think we should find a workaround before merging this branch. But I think it is something for next sprint. |
Yeah I agree, I will look into it next sprint. |
# Conflicts: # src/app/modules/project/overview/overview.component.ts
Closed due inactivity. |
Description
When a project-detail-modal was opened and the user went back using the browser navigation they would be navigated to the previous page. The expected behavior is to close the opened modal.
Type of change
Checklist
Steps to Test or Reproduce
Outline the steps to test or reproduce the PR here.
These steps will be used during release testing.
Link to issue
Closes: #437