-
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
fix: switching between windows results in new magic code input field position reset #19400
Conversation
@francoisl @Santhosh-Sellavel One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Seems keyboard gets hidden on Android mWeb after switching tabs or apps. 18324-android-chrome.webm |
Yeah good point. I don't know if it's a Chrome / accessibility issue or a bug here, but I see the same behavior on various inputs on other websites (I tried accounts.google.com, wikipedia, facebook). When the page loses focus and then regains it, the keyboard won't reopen until you tap the input. It's also happening on |
Yes. This also happens in iOS Safari where you have to tap / click to restore focus after switching tabs. It's been that way prior to this change (you can test on current staging / production). |
Yeah that makes sense. |
Reviewer Checklist
Screenshots/VideosWeb & DesktopScreen.Recording.2023-05-24.at.2.21.07.AM.movMobile Web - Chrome & Web - SafariScreen.Recording.2023-05-24.at.2.25.43.AM.moviOSAndroidScreen.Recording.2023-05-24.at.2.38.29.AM.mov |
@francoisl @akinwale I'm running into weird issues 1. On iOS this is blocking me from testing. Unable to input values, gets cleared.Screen.Recording.2023-05-24.at.2.37.57.AM.mov2. On iOS mWeb. Focus & cursor on different inputsScreen.Recording.2023-05-24.at.2.27.07.AM.movBoth happen on the main too. But the 1 seems more serious to me. Maybe we need to hold this fix before moving forward let me know your thoughts thanks! |
Hmm weird, I'm not experiencing either of those issues. I'm surprised if they're also on main. I'll ask someone else to test to get a third opinion. Screen.Recording.2023-05-23.at.3.52.13.PM.mov |
We checked with @yuwenmemon on his physical iPhone and the input behaves as expected. Anyway, I think this is fine to proceed, I don't mind finishing the checklist. |
Reviewer Checklist
Screenshots/VideosWebSee #19400 (comment) Mobile Web - ChromeSee #19400 (comment) iOS & Mobile Web - SafariScreen.Recording.2023-05-23.at.3.52.13.PM.movDesktopSee #19400 (comment) AndroidSee #19400 (comment) |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Thanks, @francoisl. If it's not happening on the real device then we're good here. Maybe iOS could be a build issue, I'll recheck. But the mWeb issue occurs for me on staging too RPReplay_Final1684946140.MP4 |
🚀 Deployed to staging by https://github.com/francoisl in version: 1.3.18-0 🚀
|
🚀 Deployed to staging by https://github.com/francoisl in version: 1.3.18-0 🚀
|
🚀 Deployed to staging by https://github.com/francoisl in version: 1.3.18-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.3.18-2 🚀
|
Details
Removes the
setInput
call in theonFocus
event handler to prevent the input from being reset after switching between browser tabs when a user is trying to enter a magic code in the new magic code input field.Fixed Issues
$ #18324
PROPOSAL: #18324 (comment)
Tests
Offline tests
N/A
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
18324-web.mp4
Mobile Web - Chrome
18324-android-chrome.webm
Mobile Web - Safari
18324-ios-safari.mp4
Desktop
iOS
Android