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 2024-01-05] [$500] Web - Message background color is stuck on cancel delete #28029
Right click on that message and click on delete comment
Click on cancel and now observe that irrespective on whichever message we hover, background color is stuck on message used in step 4
Expected Result:
App should remove background color from message as soon as we hover on any other message
Actual Result:
Background color on message is stuck when we right click on any message, click delete and cancel the delete
Workaround:
Unknown
Platforms:
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: 1.3.73.0 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
changed the title [-]Web - Message background color is stuck on cancel delete[/-][+][$500] Web - Message background color is stuck on cancel delete[/+]on Sep 22, 2023
Please re-state the problem that we are trying to solve in this issue.
The problem is that the background highlight colour on a selected message does not disappear when selecting the 'Delete Comment' popup modal and then cancelling the operation.
What is the root cause of that problem?
The issue is that the onPopoverHide() callback to handle state updates can only be called once, due to the use of the 'run and reset' paradigm. In this specific situation, this callback needs to be handled twice – once when the context menu closes, and again when the confirm delete modal changes. Since this callback is called first when the context menu closes, the subsequent cancellation of the delete modal does not call the callback to update the state of the component.
What changes do you think we should make in order to solve the problem?
We allow the onPopoverHide() callback to be called several times, by not clearing the callback after the first run.
I already have a simple and elegant working solution that only requires three lines of code to be changed.
📣 @Samueljh1! 📣
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.
Please follow these steps:
Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
Activity
[-]Web - Message background color is stuck on cancel delete[/-][+][$500] Web - Message background color is stuck on cancel delete[/+]melvin-bot commentedon Sep 22, 2023
Job added to Upwork: https://www.upwork.com/jobs/~013ba33594e38dfae9
melvin-bot commentedon Sep 22, 2023
Triggered auto assignment to @anmurali (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Sep 22, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Sep 22, 2023
Triggered auto assignment to @anmurali (
External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.melvin-bot commentedon Sep 22, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (
External)Samueljh1 commentedon Sep 22, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
The problem is that the background highlight colour on a selected message does not disappear when selecting the 'Delete Comment' popup modal and then cancelling the operation.
What is the root cause of that problem?
The issue is that the onPopoverHide() callback to handle state updates can only be called once, due to the use of the 'run and reset' paradigm. In this specific situation, this callback needs to be handled twice – once when the context menu closes, and again when the confirm delete modal changes. Since this callback is called first when the context menu closes, the subsequent cancellation of the delete modal does not call the callback to update the state of the component.
What changes do you think we should make in order to solve the problem?
We allow the onPopoverHide() callback to be called several times, by not clearing the callback after the first run.
I already have a simple and elegant working solution that only requires three lines of code to be changed.
melvin-bot commentedon Sep 22, 2023
📣 @Samueljh1! 📣
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.
Please follow these steps:
Format:
Samueljh1 commentedon Sep 22, 2023
Contributor details
Your Expensify account email: samueljh01+test@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~01a7dc17eccbc9dc59
148 remaining items
anmurali commentedon Jan 10, 2024
Payment summary for contributor payments on New Dot
-[ ] $500 to @parasharrajat on ND is approved to process
anmurali commentedon Jan 10, 2024
@dhanashree-sawant - sent you an offer
dhanashree-sawant commentedon Jan 10, 2024
Thanks @anmurali, I have accepted the offer.
melvin-bot commentedon Jan 15, 2024
@anmurali, @blimpich, @parasharrajat, @bernhardoj Huh... This is 4 days overdue. Who can take care of this?
parasharrajat commentedon Jan 16, 2024
Let's close this issue. I will request it later.
melvin-bot commentedon Jan 19, 2024
@anmurali, @blimpich, @parasharrajat, @bernhardoj Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
anmurali commentedon Jan 22, 2024
@dhanashree-sawant is paid. @parasharrajat - I will let you request this when you are ready.
parasharrajat commentedon Apr 5, 2024
Payment requested as per #28029 (comment)
JmillsExpensify commentedon Apr 8, 2024
$500 approved for @parasharrajat