-
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 2023-11-21] [$500] iOS - Chat - Lines disappear in edit composer when editing multiline text #29782
Comments
Triggered auto assignment to @dylanexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~011ace229d623e9a65 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 ( |
reviewing today! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Many lines disappear in edit composer when editing multiline text What is the root cause of that problem?The TextInput here is not auto focused. What changes do you think we should make in order to solve the problem?App/src/pages/home/report/ReportActionItemMessageEdit.js Lines 388 to 389 in a24e6a0
We can add autoFocus to it:
What alternative solutions did you explore? (Optional) |
Result: Simulator.Screen.Recording.-.iPhone.SE.3rd.generation.-.2023-10-18.at.21.00.02.mp4 |
Could not repro on latest main Screen.Recording.2023-10-19.at.15.28.32.mov |
I can not reproduce on the latest main. |
@dylanexpensify i think we good to close this one? |
I can reproduce on the latest main 1.3.87-6 Simulator.Screen.Recording.-.iPhone.SE.3rd.generation.-.2023-10-20.at.09.22.19.mp4 |
I was able to reproduce on SE device - last line was not auto-scrolled for some reason Screen.Recording.2023-10-20.at.14.19.40.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Lines disappear in edit composer when editing multiline text What is the root cause of that problem?The issue seems to be coming from having the composer textarea being displayed as style={[styles.textInputCompose, styles.flex1, styles.bgTransparent]} I don't really see the point of making a textarea behave with a flex, maybe I'm missing something ? What changes do you think we should make in order to solve the problem?But it seems that removing the Monosnap.screencast.2023-10-23.19-43-18.mp4What alternative solutions did you explore? (Optional)N/A |
I appreciated both proposals - but seems both of them are more like work around instead of fixing a root case Screen.Recording.2023-10-24.at.16.28.30.mov |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
ProposalPlease re-state the problem that we are trying to solve in this issue.When user click edit message the text edit doesn't scroll to bottom / to the end of text in IOS and mweb What is the root cause of that problem?There is no scrolling to the bottom action in msafari and for the ios native we need to focus the text input to make it scroll to bottom when the text input is mounted / ready. What changes do you think we should make in order to solve the problem?We could add this code: const scrollToBottom = useCallback((el) => {
el.focus();
el.scrollTop = el.scrollHeight;
},[]); in
around that line. call it with Result:ios_d.mp4 |
@narefyev91 mind reviewing above proposal? 🙇♂️ |
Proposal from @tsa321 looks good to me #29782 (comment) |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
Seems we had a regression. @narefyev91 what's the latest here? |
@dylanexpensify regression linked here #31238 - but as i mentioned in that issue - it's not coming from current PR |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.98-5 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-11-21. 🎊 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.
For reference, here are some details about the assignees on this 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:
|
@narefyev91 let's get steps done ^ and I'll prep payment! |
|
@tylerkaraszewski, @narefyev91, @dylanexpensify, @tsa321 Huh... This is 4 days overdue. Who can take care of this? |
@tylerkaraszewski, @narefyev91, @dylanexpensify, @tsa321 Still overdue 6 days?! Let's take care of this! |
@narefyev91 can you check off the items in the list? |
@tylerkaraszewski, @narefyev91, @dylanexpensify, @tsa321 Eep! 4 days overdue now. Issues have feelings too... |
payment summary:
please apply! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.3.85-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
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:
Issue found when executing PR #29575
Action Performed:
Expected Result:
The text will not disappear in the edit field
Actual Result:
A few lines disappear and they only appear after moving the composer
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
Bug6240576_1697551403777.RPReplay_Final1697515620.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: