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 on July 7] Web - Chat - Message not deleted when selecting delete option from the context menu #3767
So just to clarify my understanding of this issue:
The ReportActionContextMenu needs to be closed on outside click.
If you click on the ConfirmModal that appears for the delete action, you will have clicked outside the ReportActionContextMenu
Thus, the ReportActionContextMenu is closed. Since the ConfirmModal is a child of the ReportActionContextMenu, the ConfirmModal is also closed.
(the only part I'm fuzzy on) For some reason, no delete action is fired when the ConfirmModal is closed.
And your proposals for potential solutions are:
Prevent the click in the ConfirmModal being bubbled to its parent, the ReportActionContextMenu. Thus, prevent the outside click from closing the ReportActionContextMenu.
Lift the ConfirmModal higher up in the component tree such that it's not a child of the ReportActionContextMenu. Open only open it once the ReportActionContextMenu is closed.
If so, I agree that 2 is better - it's probably a bad practice to allow two non-full-screen modals to be open at a time, or to nest modals in general. It also might be more efficient to have the single modal higher up in the component tree that can be reused and recycled for many different ReportActionContextMenu components.
changed the title [-]Web - Chat - Message not deleted when selecting delete option from the context menu[/-][+][HOLD for payment on July 7] Web - Chat - Message not deleted when selecting delete option from the context menu[/+]on Jul 1, 2021
Activity
MelvinBot commentedon Jun 25, 2021
Triggered auto assignment to @NikkiWines (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.NikkiWines commentedon Jun 25, 2021
I'm not able to reproduce this on web on
1.0.74-0- @kavimuru would you mind retesting this to confirm?Screen.Recording.2021-06-25.at.4.51.15.PM.mov
isagoico commentedon Jun 26, 2021
@NikkiWines I thought the same and noticed this is only reproducible when using the right click menu. The hover menu works as expected.
NikkiWines commentedon Jun 28, 2021
@isagoico nice catch! I didn't read those reproduction steps closely enough it seems. Can confirm there is an issue when using the right-click menu
Screen.Recording.2021-06-28.at.10.37.16.AM.mov
Adding the
Externallabel since this would be a good one for someone from UpWork to work onMelvinBot commentedon Jun 28, 2021
Triggered auto assignment to @Jag96 (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.3 remaining items
roryabraham commentedon Jun 28, 2021
So just to clarify my understanding of this issue:
ReportActionContextMenuneeds to be closed on outside click.ConfirmModalthat appears for the delete action, you will have clicked outside theReportActionContextMenuReportActionContextMenuis closed. Since theConfirmModalis a child of theReportActionContextMenu, theConfirmModalis also closed.ConfirmModalis closed.And your proposals for potential solutions are:
ConfirmModalbeing bubbled to its parent, theReportActionContextMenu. Thus, prevent the outside click from closing theReportActionContextMenu.ConfirmModalhigher up in the component tree such that it's not a child of theReportActionContextMenu. Open only open it once theReportActionContextMenuis closed.Can you confirm that, @parasharrajat ?
If so, I agree that
2is better - it's probably a bad practice to allow two non-full-screen modals to be open at a time, or to nest modals in general. It also might be more efficient to have the single modal higher up in the component tree that can be reused and recycled for many differentReportActionContextMenucomponents.parasharrajat commentedon Jun 28, 2021
Yeah, I confirm @roryabraham. We should lift up the ConfirmModal to the parent component and maybe we can make it singleton for all actions.
roryabraham commentedon Jun 28, 2021
Cool, I don't think this needs to be a deploy blocker, but @parasharrajat do you have the bandwidth to work on this?
parasharrajat commentedon Jun 28, 2021
Yup, I have partial solution ready.
Jag96 commentedon Jun 29, 2021
Posted to Upwork and invited @parasharrajat to the job!
[-]Web - Chat - Message not deleted when selecting delete option from the context menu[/-][+][HOLD for payment on July 7] Web - Chat - Message not deleted when selecting delete option from the context menu[/+]Jag96 commentedon Jul 1, 2021
Reopening to keep track of payment date
Jag96 commentedon Jul 7, 2021
Paid!