-
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
[$500] Compose Box - Focus not lost from composer on LHN popup open #32970
Comments
Triggered auto assignment to @mallenexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~0123ed583fdc5774f0 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.App focuses back on composer when we open actions popup and open any right click popup in LHN What is the root cause of that problem?When popover is closed,
And then
We already the logic here to blur the active element but the time this function is called, the active element isn't composer.
What changes do you think we should make in order to solve the problem?We should pass What alternative solutions did you explore? (Optional)We can add
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The composer is focused if we close the add action popover by opening another popover. What is the root cause of that problem?Every time the add action popover closes, we call App/src/pages/home/report/ReportActionCompose/ReportActionCompose.js Lines 193 to 199 in d6755d6
When we right-click the LHN item or chat report message, it will:
The composer focus will call App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.js Lines 399 to 401 in d6755d6
In App/src/libs/focusComposerWithDelay.ts Lines 14 to 19 in d6755d6
What changes do you think we should make in order to solve the problem?Don't focus if the report/LHN popover is visible. Both use the same component, PopoverReportActionContextMenu.
What alternative solutions did you explore? (Optional)I notice that this also happens if we:
To solve this for all popover, we can prevent the focus if any of the popover is showing. To do that, in ComposerWithSuggestions, get the popover context visible state.
|
I liked @bernhardoj's proposal to fix this with 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @jasperhuangg, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@jasperhuangg when you have a min can you review @bernhardoj 's proposal above? |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Sorry for the delay, NewDot deployer chore has taken a lot of time this week. Looks good to me, assigned! |
PR is ready cc: @mananjadhav |
Still blocked on #29199 |
|
We split that large PR into several smaller ones. phase1 #35572 has already been merged, and phase2 #42423 is under review. :) |
@ntdiary Awesome! Sounds like a good idea to split up the PR. Thanks for the update. |
Above merged so we're getting close |
The PR we were holding on closed without being fixed. I threw a |
@mallenexpensify @lanitochka17 Are we still retesting this on weekly cadence? |
This bug still exists. I remember there was another PR that added a focus trap feature, which confines the focus within the popover(or RHP?), but it seems to be ineffective in this situation. 🤔 test.mp4 |
@jasperhuangg retests take a weekish. @ntdiary and I are both able to reproduce so the bug still exists. I think we need to decide between
I don't think we need/want to increase the price though |
I remember our app has an interesting feature: even if the main input box isn't focused, pressing the keyboard will still automatically focus it, allowing for smooth typing. 😄 demo.mp4 |
Thanks @ntdiary , I'm going to close, comment/reopen if you disagree. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.11-6
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
App should not focus back on composer whenever any popup is open
Actual Result:
App focuses back on composer when we open actions popup and open any right click popup in LHN
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6310077_1702365494694.windows_chrome_-_focus_back_cursor_issue.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @mallenexpensifyThe text was updated successfully, but these errors were encountered: