-
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-09-08] [$1000] mWeb - Chat - Hide the keyboard on click of confirm button #25570
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.mWeb - Chat - Hide the keyboard on click of confirm button What is the root cause of that problem?When button is pressed, text input is losing focus. What changes do you think we should make in order to solve the problem?We can add
to keep focus in textinput like we are doing in other places. App/src/components/PDFView/PDFPasswordForm.js Lines 134 to 140 in 70000a4
What alternative solutions did you explore? (Optional) |
Triggered auto assignment to @conorpendergrast ( |
Bug0 Triage Checklist (Main S/O)
|
Reassigning another Bug team member: I realized that this one still needs to be reassigned and I'm OOO until Monday, August 28. 😞 I will take it back if it's still open by my return date. Required action from the team: I ran out of time and have not tested this one. To avoid delaying the process, I've reassigned to test and confirm if there is a bug here. Thanks! |
Looking good! |
Job added to Upwork: https://www.upwork.com/jobs/~0130b6dd1d51afa360 |
Current assignee @conorpendergrast is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @cubuspl42 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Keyboard hides and user have to click on input field to open keyboard What is the root cause of that problem?It's native web behavior that when we tap on a button, the text inputs will be blurred. What changes do you think we should make in order to solve the problem?I've seen this happening many times in a couple of places now. What we used to do is to add Let's take a look at these comments:
Why are there comments added? Because the code itself is not clear, without the comments nobody understands what that preventDefault is for. That's better than using preventDefault without any comments at all (which we're doing in some other places) since it's not clear at all why we're using that.
So I think we should create a standard Inside the component, if So to fix this bug, in here we need to add This will make sure that:
What alternative solutions did you explore? (Optional)NA |
The solution by @alitoshmatov is straight to the point. @tienifr I appreciate the effort to clarify the code but I'm not convinced by the suggested approach. Adding a property strictly related to the keyboard feels over-specific; if anything, it should be related to focusing. But that assumes that (un)focusing is the only default User Agent effect of pressing the button, while I'm not completely sure whether it's the case. In short, I agree that the I suggest we go with @alitoshmatov here. C+ reviewed 🎀 👀 🎀 |
Triggered auto assignment to @mountiny, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@cubuspl42 just curious why do you think it assumes this? It only says: "if we want to persist focus on tap, we'll preventDefault", which is the same thing as adding the It only abstracts away the implementation of
yeah |
📣 @cubuspl42 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Sorry for the delay, PR is ready - #26025 |
Thanks for the update here @alitoshmatov. @conorpendergrast - you are a legend, I'm back online and will keep moving this one forward. |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.61-3 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-09-08. 🎊 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:
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
|
I disagree with the above comment. This GH is a feature request rather than a bug. |
@parasharrajat You're definitely right that it can also be seen that way. It's a tricky topic, as many Expensify bugs are related to some unexpected user experience, and there's no written down definitive source of truth how the app should behave. When something used to work in a more pleasant way and it changed, then it's easy - we have a regression! A bug. When it never worked the way we, at some point, decide is the right one; then either it was always broken, or it's just a new requirement. But I don't think it really matters in this case... That issue is long past its regression period, so I don't think my comment did any harm... I was just doing the checklist ✓ |
You can leave the checklist empty if not applicable. It matters if we start adding wrong PRs into regression checklist. There are multiple purposes of this checklist. Can you please fix it? |
The text of the bullet is "The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake", it doesn't mention anything about a regression explicitly. A regression is when something is working and stops. When a new feature is added with behavior that's later decided to be "wrong", it can be said that it was some kind of a mistake not to make it "right" from the beginning. As long as it's about learning, I can't see any negative consequences of my comment and you didn't mention any. Maybe the text of the bullet is different than the intention behind it?
As you don't have any direct authority over me, to the best of my knowledge, I will gladly change it when you convince me to. |
It was just a request. Sorry if that sounded rude. It was a little direct. I already mentioned earlier that this is more of a feature request not a bug. So it does not lie under a mistake from old PR clause. I don't want to continue discussing this so it's fine if you don't. Anyway, Thanks for your time. |
Here is the payment summary:
Upwork Job: https://www.upwork.com/jobs/~0130b6dd1d51afa360 *If applicable, the bonuses will be applied on the final payment Extra Notes regarding payment: No bonus but everyone has been paid or payment has been prepared in Upwork. Please confirm receipt and I can close. Thanks! |
Alright, everyone has been paid here. I'm going to close for now. |
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:
example protected PDF.pdf
Password:
25570
Expected Result:
Should not hide the keyboard same as native app
Actual Result:
Keyboard hides and user have to click on input field to open keyboard
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.55-7
Reproducible in staging?: Y
Reproducible in production?: Y
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
Screen_Recording_20230810_141921_New.Expensify.mp4
Record_2023-08-19-22-58-29.mp4
Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1691657367673159
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: