-
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 2022-03-24] $500 Keyboard is hidden after user send message with send button in mobile web - reported by @K4tsuki #7798
Comments
Triggered auto assignment to @puneetlath ( |
Triggered auto assignment to @laurenreidexpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @roryabraham ( |
I have a feeling this might be more trouble than it's worth. Dealing with the virtual keyboard's disobedience on mobile safari is always a pain. |
@K4tsuki did you have a proposal on how to fix this? |
@laurenreidexpensify currently I don't have proposal for this issue. |
Increased pricing to $500 |
ProposalI notice that the issue is the default behavior of the browser. So what I'm gonna do add App/src/pages/home/report/ReportActionCompose.js Lines 573 to 583 in bc4f429
+ onFocus={() => this.textInput.focus()} This will make re-focus the text input after the button is pressed. Also, this will fix text input lost focus in Web. mWeb ChromeRPReplay_Final1646819206.MP4mWeb SafariRPReplay_Final1646820212.MP4 |
Interesting solution @mollfpr. It seems to work well on the mobile Web. But it will cause problem on the web. When a user is focusing on the send button via tab it will move it back to the composer. |
Nice catch @parasharrajat . There’s another approach. Adding ‘this.textInput.focus()’ inside ‘submit’ also work, but there’s some delay for the focus applied to text input. |
Yeah, that delay is bad as it will close the keyboard and reopen it causing layout shifts. |
I do have a proposal too cc: @roryabraham Proposal.
On Submit button add an event
<TouchableOpacity
....
onPress={this.submitForm}
onMouseDown={e => e.preventDefault()}
.... then in App/src/pages/home/report/ReportActionCompose.js Lines 385 to 386 in 6e83f4a
this.textInput.setNativeProps({selection: {start: 0, end: 0}}); |
@parasharrajat I think you got this 😉 |
I can't validate this atm because of https://expensify.slack.com/archives/C01GTK53T8Q/p1646964936524219 |
@parasharrajat I managed to test out your solution on a physical device and it worked well 👍 LGTM |
I just removed the |
PR merged – as a reminder @laurenreidexpensify since @parasharrajat submitted the PR to fix this issue he's not eligible for the C+ reward for the issue as well, as stated our C+ guidelines:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.43-2 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 2022-03-24. 🎊 |
Taking over CM to manage payments. @parasharrajat , can you apply here plz https://www.upwork.com/jobs/~012a764a955a9354d3 |
@mallenexpensify Applied with correct terms. Thanks. |
Paid @parasharrajat $500 for the fix and @K4tsuki $250 for reporting. Thanks! |
Since the linked PR caused a small regression, @parasharrajat could you please follow the steps mentioned in the doc here and fill the RCA doc. It will be helpful to learn something and improve our process. |
Thanks, @MonilBhavsar but I wasn't C+ on this issue. I solved with a PR as a contributor. So IMO, the C+ assigned on the new issue should proceed with the steps. cc: @mananjadhav. Please let me know otherwise whatever is the process. On a side note, I tried to solve it but didn't find any solution. |
@parasharrajat from the main C+ doc
Would that not be you? |
Ok, I will do that. |
Thank you! 🙌 |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a production regression has occurred a Root Cause Analysis is required. Please follow the instructions here. 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. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Onscreen keyboard stays visible like in native apps
Actual Result:
Onscreen keyboard is hidden/disappears
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.39-0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by: @K4tsuki
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1643956656821729
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: