-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 2023-10-16] [$125] mweb/Safari - Composer - Cursor does not moved to a new line in the composer when tapped on the "return" #28501
Comments
Triggered auto assignment to @trjExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @chiragsalian ( |
The issue is not reproducible with a 1.3.75.3 build RPReplay_Final1696009728.mp4 |
i cannot reproduce either, closing issue. |
@lanitochka17 @chiragsalian I can still reproduce it on the latest Screen.Recording.2023-09-30.at.18.09.29.mov |
@chiragsalian / @trjExpensify I am able to reproduce the issue in staging itself. Could you kindly check and re-open this issue? |
Still repro on the latest staging |
@abdulrahuman5196 @bernhardoj have you got fixes on tour mind? Or offending pr? |
I switched to the commit before this PR and the issue is gone. I don't know how it's related though. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing Enter doesn't add new lines on the mobile web. What is the root cause of that problem?TL;DR App/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.js Lines 111 to 127 in dee1632
Details: App/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js Lines 288 to 317 in dee1632
Notice that That is because initially App/src/components/PopoverWithMeasuredContent.js Lines 136 to 157 in dee1632
After the measurement is done ( In our case App/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.js Lines 64 to 79 in dee1632
But the problem is, all context menu is filtered out and that is because when
App/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.js Lines 302 to 304 in dee1632
and most of the context menu items rely on
Previously, What changes do you think we should make in order to solve the problem?The simplest solution is to set the initial value of
What alternative solutions did you explore? (Optional)Honestly, it feels wrong to have 2 context menu items rendered by default when we are not opening any context menu. So, I think having an empty App/src/components/PopoverWithMeasuredContent.js Lines 144 to 157 in 0c866f4
|
Your proposal here works fine. But I don't think it is the proper fix.
Same for the alternative solution as well.
We shouldn't even come to this place(children rendering) if the popover is not rendered. AFAIK, The popover layout will only happen if user clicks to show popover. In First layout, an invisible view will be rendered to calculate size, followed by proper renders of popovers. I know you had tried to explain the same here. But could point to how this happens? I am not seeing any rendering logic changes based on isVisible param in the PR.
Do Let me know if I am missing something. |
This process is done even without clicking the button to show the popover. My alternative solution won't allow the measurement to happen if it's not visible.
The |
Checked changes from this PR and have the same finding as in the proposal Setting the |
Thanks @bernhardoj I have asked @OlimpiaZurek as a PR author to raise a fix PR but given we will use your solution, we will reward you 25% of standard bounty so $125 |
@mountiny thanks! |
Assigning @bernhardoj to the issue to keep track of that for when this is ready for payment. |
|
Assigning myself for mnagement and handling the PR review |
This is fixed in staging, removing blocker label |
@trjExpensify, @mountiny, @bernhardoj Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
What's the dealio here? We're ready to pay @bernhardoj $125 for this? |
Yep I think we are good to pay, the checklist is not needed I think, it was already clearly identified what pr was this regression from and the author has addressed it using fix provided by @bernhardoj |
Job added to Upwork: https://www.upwork.com/jobs/~01a307034471edf3f5 |
Triggered auto assignment to Contributor Plus for review of internal employee PR - @situchan ( |
(needed a job created in Upwork, removing @situchan). |
@bernhardoj sent you an offer for $125! |
Thanks! Accepted. @trjExpensify |
Paid! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Issue found when executing PR #27490
Action Performed:
Expected Result:
Cursor should be moved to a new line
Actual Result:
Nothing happened. The cursor remains on the same line
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.75-0
Reproducible in staging?: Yes
Reproducible in production?: No
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
Bug6219214_1696001683570.RPReplay_Final1696001647.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: