You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-10-02] [$500] DEV - Web - Console error when user try to drag and drop attachment #27375
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: Dev 1.3.67-0 Reproducible in staging?: n Reproducible in production?: n 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
changed the title [-]DEV - Web - Console error when user try to drag and drop attachment[/-][+][$500] DEV - Web - Console error when user try to drag and drop attachment[/+]on Sep 13, 2023
DEV - Web - Console error when user try to drag and drop attachment
Root Cause
We are initalizing the popover modal ref with null, and dont have a condition to return if popoverModal.current is null when adding/removing dragover listner resulting in a console error when popovermodal ref is null
Changes
modify SidebarScreen to only execute hideCreateMenu if popoverModal.current
@0xmiroslav I think the issue here is even though we want to remove the eventlistner when removeDragoverListener is executed the listner never removed because we are passing anonymous while adding and removing listner.
Add a console.log in addEventListner, you will realize dragover listner is not removerd when FAB menu is closed.
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.73-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2023-10-02. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
External issue reporter
Contributor that fixed the issue
Contributor+ that helped on the issue and/or PR
For reference, here are some details about the assignees on this issue:
Activity
[-]DEV - Web - Console error when user try to drag and drop attachment[/-][+][$500] DEV - Web - Console error when user try to drag and drop attachment[/+]melvin-bot commentedon Sep 13, 2023
Job added to Upwork: https://www.upwork.com/jobs/~016eba922aef37e232
melvin-bot commentedon Sep 13, 2023
Triggered auto assignment to @johncschuster (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.melvin-bot commentedon Sep 13, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav (
External)ishpaul777 commentedon Sep 13, 2023
Proposal
Problem
DEV - Web - Console error when user try to drag and drop attachment
Root Cause
We are initalizing the popover modal ref with null, and dont have a condition to return if
popoverModal.currentis null when adding/removing dragover listner resulting in a console error when popovermodal ref is nullChanges
modify
SidebarScreento only execute hideCreateMenu if popoverModal.current0xmiroslav commentedon Sep 13, 2023
@ishpaul777 are you able to reproduce in latest main?
ishpaul777 commentedon Sep 13, 2023
@0xmiroslav just pulled main and checked issue is not reproducable.
0xmiroslav commentedon Sep 13, 2023
@johncschuster we can close this
ishpaul777 commentedon Sep 13, 2023
@0xmiroslav I think the issue here is even though we want to remove the eventlistner when removeDragoverListener is executed the listner never removed because we are passing anonymous while adding and removing listner.
Add a console.log in addEventListner, you will realize dragover listner is not removerd when FAB menu is closed.
more info - https://stackoverflow.com/questions/10444077/javascript-removeeventlistener-not-working
0xmiroslav commentedon Sep 13, 2023
@ishpaul777 I am not convinced about your analysis. How does it affect the app?
26 remaining items
melvin-bot commentedon Sep 25, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.73-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2023-10-02. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
ishpaul777 commentedon Oct 3, 2023
Hey! @johncschuster! gentle bump for payment! Thanks
0xmiroslav commentedon Oct 3, 2023
This was just code optimization, originally console error. So we can skip BZ checklist here.
johncschuster commentedon Oct 4, 2023
Payment has been issued to everyone! Thanks!
ishpaul777 commentedon Oct 5, 2023
Hey @johncschuster,thank for sending payment, I think the PR is eligible for bonus as #27375 (comment)
cc @srikarparsi
ishpaul777 commentedon Oct 8, 2023
gentle bump @johncschuster on above ^, thanks!
sonialiap commentedon Oct 9, 2023
Reopening to make sure that @johncschuster sees the Q about bonus
johncschuster commentedon Oct 9, 2023
Urgency bonus has been issued to @0xmiroslav and @ishpaul777