-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for #15289][$1000] If Action Menu is open, then Drag ad Drop in the report screen does not work. #17300
Comments
Triggered auto assignment to @Christinadobrzyn ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~012e8154200f668718 |
Current assignee @Christinadobrzyn is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Triggered auto assignment to @yuwenmemon ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.If Action Menu is open, then Drag ad Drop in the report screen does not work What is the root cause of that problem?Currently Action Menu is rendered by Popover component, but it's not implemented properly. Popover is based on Modal, thus when it's displayed, there is a full-screen backdrop behind => The DragAndDrop component can not catch the drag & drop events What changes do you think we should make in order to solve the problem?There are few of options: During testing, I found out there are 2 places having similar issues: |
ProposalPlease re-state the problem that we are trying to solve in this issue.If Action Menu is open, then Drag and Drop in the report screen does not work. What is the root cause of that problem?The Popover component which is responsible for rendering the Action Menu, uses Modal under the hood. However, when Modal is active, the Modal's backdrop sits on top of all the other elements thus intercepting the event listeners attached to those elements. This problem doesn't occur only in Action Menu, but also in other places where the PopoverMenu component is used; such as Emoji Menu. What changes do you think we should make in order to solve the problem?Among many feasible solutions - the best option is to build a new component that detects when a dragover event happens in its child element. Let's call this component DragListener. The code will look something like this: Then wrap the Action Menu with DragListener and simply set the menu visibility to false when a dragover event is detected. Working solutionUntitled.movSimilarly, all the Popover Menu components where a similar problem occurs can be wrapped with DragListener. |
📣 @Armedin! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Format:
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
This might be fixed in #15289 which is popover refactor |
That's correct. This should be fixed after #15289 is implemented. |
Thanks @situchan & @allroundexperts. As I still see it still has the help wanted label, @aimane-chnaif will this get handled on #15289 can you confirm? |
Let's put this on HOLD rather than close since we've not picked up final solution yet. But will likely to go with popover refactor. |
cc: @dangrous |
Changed Title and labeled this |
Still on HOLD |
back from ooo - thanks for handling this @zanyrenney I can take it off your plate! Monitoring PR here - #22335 (comment) - gonna move to weekly while we wait for PR to be done |
Monitoring - #22335 (comment) |
Monitoring - #22335 (comment) |
Monitoring - #22335 (comment) |
#22335 (comment) is getting paid next Tuesday! I'll test this again tomorrow. |
Tested the steps in the OP and I can confirm the drag and drop isn't working. What do you think @Santhosh-Sellavel @aimane-chnaif @yuwenmemon @dangrous Do you think we should move forward with this fix? |
@Christinadobrzyn Can you share a screen recording of it not working? It seems to work fine on my end. Thanks! |
This is not reproducible anymore and can be closed. |
Closing. |
@zanyrenney @Christinadobrzyn This Issue has been fixed in another issue, so am I eligible for reporting bonus or not for 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:
Drag and Drop should work when the Action menu is open.
Actual Result:
Drag and Drop does not work if the Action modal is open
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.98-2
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
drag-and-drop-doesnt-work-on-modal-open.mov
Recording.209.mp4
Expensify/Expensify Issue URL:
Issue reported by: @jayeshmangwani
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1681209641233429
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: