-
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] [$1000] mWeb - mWeb - Keyboard opens automatically after going back from attachment #23489
Comments
Triggered auto assignment to @stephanieelliott ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.The keyboard automatically opens when returning from selecting an attachment. What is the root cause of that problem?When the window regains focus, as measured by App/src/pages/home/report/ReportActionCompose.js Lines 268 to 274 in 64e719e
What changes do you think we should make in order to solve the problem?We should prevent this behavior for mobile web users, similar to the behavior on native where I do question whether the correct variable is used here and whether it should not be This variable has the value What alternative solutions did you explore? (Optional)We could implement specific logic for preventing this behavior when returning from selecting an attachment. However, a general solution may be more desired as this behavior seems unwanted on mobile. |
Was able to repro. |
Job added to Upwork: https://www.upwork.com/jobs/~011c973cf5ceb3c3f7 |
Current assignee @stephanieelliott is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
Refocusing on main composer opens the keyboard. I think this is an expected behavior |
Nope, as we had the same issue on native platforms previously and we disabled it.This is not the expected behaviour.Only when the user taps the composer, only then the keyboard should open. |
On native mobile |
I think composer autofocus issues on mWeb can be handled in #23382. |
@situchan It looks like they are separate bugs, However, for this issue, I think this is the expected behavior. cc @stephanieelliott, looking at this comment, it seems like this is the expected, Focusing the input will open the keyboard on non-native platforms. App/src/pages/home/report/ReportActionCompose.js Lines 269 to 271 in 64e719e
|
If you read the comment,it is mentioned that this same issue existed on native platforms and was solved using this code.If we are fixing it on native platforms,why not on mWeb? |
It seems to be a regression. I suspected the wrong variable was used here (see proposal, Originally this variable was used: Then later it was changed to However, other usages of the old variable |
This feels like expected behavior to me too... I don't know enough about the RN variable to be certain though. @fedirjh based on the above, do you still agree this is not a bug? |
@stephanieelliott Think from the perspective of a user using the platform. |
I don’t think this is a bug.
The behavior should be fixed by #15992 , So I believe we should hold this one for [Tracking] Fix Composer Component Focus Issues Edit: This is a similar issue #16596 that was held for #15992. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
I agree with @fedirjh, it feels like polish if anything. Taking |
Not overdue, just removed the |
Still on hold. |
Still on hold. |
Still on hold for #15992 |
Still on hold |
Closing this as I don't think it is a priority. It is linked to the master tracking issue for composer component polish (which has also been deprioritized), so we may reopen it when we decide to focus on that issue. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Keyboard should not open automatically.
Actual Result:
Keyboard opens automatically
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number:
Reproducible in staging?:
Reproducible in production?:
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
WhatsApp.Video.2023-07-23.at.11.21.06.PM.mp4
Screen_Recording_20230724_103858_Chrome.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Talha345
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690147484102679
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: