-
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 - App #26239] [$500] Mobile-Safari Auto Focuses Composer in Report on Existing chat #29509
Comments
Triggered auto assignment to @alexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~01d1e885de54d568ec |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
I'm unable to replicate this on my iOS simulator on production or staging |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
App/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions.js Lines 126 to 129 in bbbfc9c
App/src/components/Composer/index.js Lines 175 to 178 in bbbfc9c
What changes do you think we should make in order to solve the problem?
export default function updateMultilineInputRange(input, shouldAutoFocus = true) {
if (!input) {
return;
}
if (input.value && input.setSelectionRange) {
const length = input.value.length;
+ // To disable unwanted focus on Composer when `shouldAutoFocus` is false.
+ if (!shouldAutoFocus && Browser.isMobileSafari()) {
+ // eslint-disable-next-line no-param-reassign
+ input.scrollTop = input.scrollHeight;
+ return;
+ }
input.setSelectionRange(length, length);
// eslint-disable-next-line no-param-reassign
input.scrollTop = input.scrollHeight;
}
}
What alternative solutions did you explore? (Optional)
|
Before Fix:Screen.Recording.2023-10-13.at.9.17.45.AM.movAfter Fix (Including above mentioned PR changes):Screen.Recording.2023-10-13.at.9.14.52.AM.mov |
Feels like we have a dependency on #28790 for above proposal. |
@parasharrajat - are you suggesting that we should move this to be on HOLD until that GH is resolved? |
No, there might be more proposals. |
@parasharrajat My solution will work in current |
This comment was marked as outdated.
This comment was marked as outdated.
Triggered auto assignment to @thienlnam, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I think we should hold all these for #26239 which should ideally fix the root cause for all these focus issues upstream |
Cool, moving this to weekly for now |
Also #28790 this PR is merged so we can move on with this issue. |
I wouldn't consider this a severe enough bug to need to get a fix out immediately - let's just wait for the upstream fix so we don't have to have a bunch of back and fourths |
Monthly Update: We are at 17.3.1. Setting a reminder to check in next month. |
@ntdiary - I believe that we are at Version 17.4.1 now, can we confirm if we can take this one off hold? Thanks! |
Yeah, our upstream PR has been released in 17.4. :) |
We are back open for proposals here. Thanks! |
@alexpensify Could you please remove the Hold from the title and reconfirm details in OP? It been so long, it might be outdated. |
@Expensify/applause can you please recheck this issue? Is it still valid based on the latest regression steps? |
I'm going to put this back on hold for #26239. It looks like there will be some cleanup in the other GH. |
Weekly Update: The other GH is going through a clean-up process. |
Weekly Update: The other GH is still being updated |
Weekly Update: The other GH is on hold for another update |
Weekly Update: Same as last week, waiting on the other GH. |
Weekly Update: #26239 is moving along, we can test this one again once it's in Staging or production. |
Heads up, I will be offline until Tuesday, May 28, 2024, and will not actively watch over this GitHub during that period.If anything urgent is needed here, please ask for help in the #expensify-open-source Slack Room-- thanks! |
Weekly Update: Waiting for a retest. |
Weekly Update: I need to bump the Slack room, no movement here yet for the retest |
Weekly Update: Waiting on a retest. |
It has been quite a long time waiting for retesting. @alexpensify Could you please help to push this forward? I see no use in keeping this issue open. |
Issue is not reproducible anymore. RPReplay_Final1718808213.MP4 |
Already did @parasharrajat. 😄 Thank you everyone for the help here. I'm going to close since the other GH fixed this one! |
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.83-5
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: @jeet-dhandha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1697136130670869
Action Performed:
Step 1
, Verify that it doesn't auto-focus on chat with messages.Expected Result:
Composer in Mobile safari should not get auto-focused.
Actual Result:
Composer in Mobile-Safari get's auto-focused.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
focus-mweb-chrome.mov
Android: mWeb Chrome
iOS: Native
focus-iOS.mov
iOS: mWeb Safari
focus-mweb-safari.mov
RPReplay-Final1697147908.MP4
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: