-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 payment 2023-03-17] [$1000] Report item stays hovered after we edited the message or cancelled the edit message #14080
Comments
I'm not able to reproduce this |
I also could not repro in Safari 16.1 (I did not test older versions). Edit: nor Chrome. |
I'm also unable to reproduce it: 2023-01-09_11-24-06.mp4 |
I'm able to reproduce it now. testing123.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~01bc65e21d9f4a414d |
Current assignee @isabelastisser is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
Triggered auto assignment to @ctkochan22 ( |
Proposaldiff --git a/src/components/Hoverable/index.js b/src/components/Hoverable/index.js
index ef4bc2bf53..841696f9ef 100644
--- a/src/components/Hoverable/index.js
+++ b/src/components/Hoverable/index.js
@@ -107,6 +107,15 @@ class Hoverable extends Component {
onMouseLeave(el);
}
},
+ onBlur: (el) => {
+ this.setIsHovered(false);
+
+ // Call the original onBlur, if any
+ const {onBlur} = this.props.children;
+ if (_.isFunction(onBlur)) {
+ onBlur(el);
+ }
+ },
});
}
return (
@@ -115,6 +124,7 @@ class Hoverable extends Component {
ref={el => this.wrapperView = el}
onMouseEnter={() => this.setIsHovered(true)}
onMouseLeave={() => this.setIsHovered(false)}
+ onBlur={() => this.setIsHovered(false)}
>
{ // If this.props.children is a function, call it to provide the hover state to the children.
_.isFunction(this.props.children) DetailsThis is similar to another issue where the hovered item stays hovered due to the missing event Note: The |
I'd be a 👍🏼 to removing |
@roryabraham I have only tested with closing the modal (as described in the comments) is there any other scenarios that we should test before removing that code? |
I can't think of any others, no |
Not overdue. |
Thanks @getusha I didn't catch that while testing |
The PR fixing the regression is ready |
We are good here? |
Update: All contributors were paid in Upwork now. Reported by @Pujan92 |
I think this is eligible for reporting bonus as i found the regression |
@isabelastisser @gadhiyamanan is eligible for the reporting payout here. |
I'm not 100% sure how this works if its a regression, but probably that is correct. @isabelastisser can we ask in slack? |
Hi @gadhiyamanan , I invited you to the job in Upwork now. Please accept it and I will process the payment. Thanks! |
@isabelastisser applied |
The payment was processed in Upwork, we are all set! |
@isabelastisser please close the upwork contract |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.81-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-03-17. 🎊 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.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
Regression Test Proposal
|
(For BugZero Checklist) I understand this was removed as hack but in the future, when remove hack, we should make sure to find out and test all possible issues hidden by this hack. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
After edit/cancel edit the message item should not be hovered
Actual Result:
After edit/cancel edit the message item keeps hovered
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.50-4
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:
Screen.Recording.2023-01-03.at.12.45.09.AM.mov
Recording.1221.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Pujan92
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1672687285656309
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: