-
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
mWeb - Request Money - Search box is not auto focused when changing currency #4711
Comments
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @jasperhuangg ( |
Issue is still reproducible in 1.0.86-2 iOS mWeb only. Android mWeb is working as expected. |
Seems to be fixed in v1.0.86-3? Screen.Recording.2021-08-18.at.5.20.52.PM.mov |
@luacmartins Seems like it's only an issue on a physical device, just tried it on my iPhone and it's not pulling up the keyboard, however the styles for focus are being applied on the text input. I don't think this should be a deploy blocker though. |
I need to head out right now so I'm going to unassign myself and find help, but I got really close to figuring out a solution: So if you pass RPReplay_Final1629339877.MP4I think a possible solution would be to delay focusing the text input until after the animation finishes. However, I tried sticking this block in the setTimeout(() => this.textInput.focus(), 2000);
// just in case
setTimeout(() => this.textInput.current.focus(), 2000); |
IOS Safari will block any kind of focus that is applied asynchronously which means inside settimeout or Interaction Manager. I am sure we can't do anything to fix this. Previously, we moved on to leave this as it is and I think best would be to do thr same now. We cannot focus on the input in sync manner it will interfere with animations. |
Removed |
Oh, sorry. Actually, I think I might have confused this with the keyboard state. So here is TLDR #3604 (comment). |
Triggered auto assignment to @NicMendonca ( |
@parasharrajat yeah it doesn't help much if the input is focused but the keyboard doesn't open 😅 but thanks for linking the related discussion! I opened up a conversation in #expensify-open-source here |
(not overdue... discussing if this should be closed as not worth the time) |
Issue reproducible during KI retests |
Discussed in Slack, decided to close (see slack channel for details) |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Issue was found while executing PR #4662
Action Performed:
Expected Result:
Cursor should appear after selecting a currency
Actual Result:
Search currency box should be autofocused according to PR steps. #4662
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.0.86-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Bug5197704_Image_from_iOS__8_.mp4
Expensify/Expensify Issue URL:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: