-
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 payment] [$2000] Wrong chat composer highlighted after clicking out of emoji modal #14848
Comments
Triggered auto assignment to @davidcardoza ( |
@davidcardoza Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
I was able to reproduce the issue. Going to bring this out to a contributor. |
Triggered auto assignment to @NikkiWines ( |
Job added to Upwork: https://www.upwork.com/jobs/~01aa19f44ae1aa2e68 |
Current assignee @davidcardoza is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Triggered auto assignment to @cristipaval ( |
Why did Melvin assign both me and @NikkiWines ? 👀 |
ProposalPlease re-state the problem that we are trying to solve in this issue.When the emoji selector popup is opened from the edit message composer and then closed, the main chat composer gets the focus instead of the edit message composer. What is the root cause of that problem?The main composer has On smaller screens, when the second composer (one which comes up when you edit the message) gets the focus, we're un-mounting the main composer. When the secondary composer looses focus (by a click outside), we then mount the main composer again. Since the main composer has auto-focus property setup, the main composer gets focused. This can be seen in the When the emoji popup gets closed by clicking outside the secondary composer, it gets blur for a split second. At the same instance, the emoji popup also calls What changes do you think we should make in order to solve the problem?We can do the following:
Alternate Solutions
|
ProposalPlease re-state the problem that we are trying to solve in this issue.After closing the emoji picker when editing message, the wrong composer appeared and was focused instead of the edit composer What is the root cause of that problem?After the emoji picker is closed, the focus was returned to the What changes do you think we should make in order to solve the problem?In Here's the pseudo code of the wrapped function:
We can optionally consider putting that same logic down to the What alternative solutions did you explore? (Optional)We can use timeout but generally if there's a working solution that doesn't use timeout, we should prioritize that solution. ResultWorking well after the fix: Screen.Recording.2023-02-11.at.14.50.10.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Closing the emoji modal does not focus the corresponding composer. What is the root cause of that problem?The onModalHide callback is being called too early (i.e. before actually hiding the modal). This is a bug in What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)
|
@s77rt Is this really a bug upstream? Aren't you just delaying the callback as well but in a different way? (Rendering twice vs using setTimeout)? Also, aren't we not allowed to create a PR without being assigned the issue? |
@cristipaval, eh, it's been so long, this issue has gone away. :) test.mp4 |
I can't reproduce it either. |
Ok, according to this comment, I am proposing to pay @mollfpr and @ntdiary for the long investigation that was done several months ago. I'll assign a bugzero member. |
Triggered auto assignment to @sonialiap ( |
Bug0 Triage Checklist (Main S/O)
|
@sonialiap, could you please help me with this? |
@cristipaval we typically pay around 25% of the issue price in these cases. Split between the two, does $250 each sound reasonable to you? |
yes, thank you @sonialiap! 🙏 |
What's the payment status here? Can we close the issue? |
awaiting payment. :) |
@sonialiap I'll do manual request on NewDot, thank you! |
$250 payment approved for @mollfpr based on this comment. |
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:
The main composer is not highlighted, and the keyboard is focused on the editing composer
Actual Result:
The main composer is highlighted, and the keyboard is not focused on the editing composer
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.65-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:
original-50D4B522-84CD-4952-97DE-ED6DF955B90D.mp4
RPReplay-Final1675655017.MP4
Expensify/Expensify Issue URL:
Issue reported by: @tienifr
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1675481157349539
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: