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
Web - User unable to select Delete button after click on copy to clipboard action of popover #13293
@kbecciv I think by the time you are clicking the delete option the timeout gets over and the popover gets closed. I am able to delete it when I quickly select the option and attach the video for both.
The problem is from the onPress() function in ContextMenuActions. It only leaves the mini-menu open after the user press on the item, but not the popup menu.
In my opinion, it is an expected behavior on small devices, but maybe not for the web version. The user should not be required to press one more time to close the popup after copying the text, and the popup should only be closed when the user try to delete the message. Maybe it is the intention of the developer, but in case it is not, here is my solution proposal.
Solution
First, modify the behaviour of the delete button so that the menu would disappear and the confirmation box can display
In
Oh great catch! What's odd is that this issue was reported a couple of days ago, and that linked issue/PR would have long already been on staging and production.
As for @s77rt's comment, I agree that this is intended behavior. A user shouldn't be able to click options on the comment action menu twice, so I'm going to close this issue regardless.
Activity
melvin-bot commentedon Dec 2, 2022
Triggered auto assignment to @JmillsExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.Pujan92 commentedon Dec 3, 2022
@kbecciv I think by the time you are clicking the delete option the timeout gets over and the popover gets closed. I am able to delete it when I quickly select the option and attach the video for both.
3e902e73-b178-47bc-9094-9580546fcd06.webm
tienifr commentedon Dec 3, 2022
Proposal:
Problem
The problem is from the
onPress()function in ContextMenuActions. It only leaves the mini-menu open after the user press on the item, but not the popup menu.In my opinion, it is an expected behavior on small devices, but maybe not for the web version. The user should not be required to press one more time to close the popup after copying the text, and the popup should only be closed when the user try to delete the message. Maybe it is the intention of the developer, but in case it is not, here is my solution proposal.
Solution
First, modify the behaviour of the delete button so that the menu would disappear and the confirmation box can display
In
App/src/pages/home/report/ContextMenu/ContextMenuActions.js
Lines 193 to 205 in 82139c8
Change
to
Solution 1: In
BaseReportActionContextMenu.js, change the behavior of the copy button on large screen (web) onlyIn
App/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.js
Line 70 in 82139c8
Change
to
Solution 2: In
BaseReportActionContextMenu.js, change the behaviour of the copy button on all deviceIn
App/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.js
Line 70 in 82139c8
Change
to
Solution 3: In
BaseReportActionContextMenu.js, change the behaviour of the copy button on all deviceIn
App/src/pages/home/report/ContextMenu/ContextMenuActions.js
Lines 119 to 121 in 82139c8
Change
to
Result
Web
recordbug_021222_web.mp4
Mobile
recordbug_021222_mobile.mp4
s77rt commentedon Dec 4, 2022
Isn't this actually intended?
It's a feature not a bug I suppose
adeel0202 commentedon Dec 5, 2022
It is a duplicate of #11086
JmillsExpensify commentedon Dec 5, 2022
Oh great catch! What's odd is that this issue was reported a couple of days ago, and that linked issue/PR would have long already been on staging and production.
JmillsExpensify commentedon Dec 5, 2022
As for @s77rt's comment, I agree that this is intended behavior. A user shouldn't be able to click options on the comment action menu twice, so I'm going to close this issue regardless.