-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$1000] mWeb/Safari - The modal remains open for a few seconds before closing after returning from a chat #25598
Comments
Triggered auto assignment to @NicMendonca ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Menu modal remains open for a few seconds after navigating back from a chat report using the back button. What is the root cause of that problem?The modal menu visibility state value remains true at the point where navigation away from the report starts. The menu eventually gets unmounted only after the LHN is displayed. What changes do you think we should make in order to solve the problem?We can use the window popstate event to check if the browser is about to navigate away from the report. Since this only occurs in mWeb, we can conditionally add / remove the event listener. Solution 1
Solution 2
What alternative solutions did you explore? (Optional)None. 25598-demo.mp4 |
reproducible 👍 RPReplay_Final1692716304.MP4 |
Job added to Upwork: https://www.upwork.com/jobs/~018a166524d05bfa35 |
Current assignee @NicMendonca is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
@abdulrahuman5196 When you get a chance to review, please check out my proposal. Thanks. |
@abdulrahuman5196 bump please! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Menu modal remains open for a few seconds after navigating back from a chat report using the back button. Also I found that emojipicker stays opened forever after navigating back. What is the root cause of that problem?Modals should be hidden before navigating back. What changes do you think we should make in order to solve the problem?Except described bug I found that emojipicker stays opened forever after navigating back and user has to close it manually. Also in IOU report "Delete request" modal remains opened for a few seconds after navigating back from a chat report using the back button. For composer related modals I propose to add navigation listener for useEffect(() => {
const hideModalsBeforeGoBack = navigation.addListener('beforeRemove', (e) => {
if (!isMenuVisible && !EmojiPickerAction.emojiPickerRef.current.isEmojiPickerVisible) {
return;
}
e.preventDefault();
if (EmojiPickerAction.emojiPickerRef.current.isEmojiPickerVisible) EmojiPickerAction.hideEmojiPicker();
if (isMenuVisible) setMenuVisibility(false);
window.history.forward();
});
return () => {
hideModalsBeforeGoBack();
};
}, [isMenuVisible, navigation]); I think we should prevent go to previous screen at once, 1st - close modal, 2nd click - go back. It works the same way in native apps so we should keep consistency. Also I used For IOU report "Delete request" modal, I can apply the same logic for What alternative solutions did you explore? (Optional)We can avoid preventing go to previous screen and don't keep consistency between web version and native apps. |
@NicMendonca, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Apologies for the delay. Will check and get back soon. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@abdulrahuman5196 bump on reviewing these proposals ^^ |
@NicMendonca @abdulrahuman5196 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Sorry for the delay. Will check in my morning. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@NicMendonca @abdulrahuman5196 this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
@NicMendonca, @abdulrahuman5196 Huh... This is 4 days overdue. Who can take care of this? |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif ( |
@aimane-chnaif do you have bandwidth to pick up this one? 🙏 |
yes, I will update this by tomorrow |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Hi, @NicMendonca @aimane-chnaif Sorry for the delay. I am back from OOO. I did initially review the proposals and provided comments. I can take this over again if @aimane-chnaif is fine. |
@abdulrahuman5196 yes, you can take over again if it's still reproducible and will not be closed |
Sure @aimane-chnaif |
I'm still able to repro it in staging however now it stays open for a few ms safari-bug.mp4 |
That should not be bug at all, or worth fixing. |
@akinwale's proposal made sense but we applied that solution in #27452. @NicMendonca let's close if you agree |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@NicMendonca The issue is not reproducible now. We can close this issue. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The modal should close before exiting the chat.
Actual Result:
It remains open even after going back to the LHN.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.55-7
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Rpreplay.Final1691677941.mp4
2023.08.21.18.16.Img.0462.mp4
Expensify/Expensify Issue URL:
Issue reported by: @aman-atg
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1691678959149429
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: