-
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 input not auto-focused on mWeb #55823
Fix input not auto-focused on mWeb #55823
Conversation
@rayane-djouah Please 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] |
@rayane-djouah Could you help review this when you have a chance? Thanks! |
Apologies for the delay, I was out sick the end of last week. reviewing now |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid_native.mp4Android: mWeb ChromeBefore:screen-20250123-234832.mp4After:screen-20250123-234957.mp4iOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-02-03.at.10.46.06.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-02-03.at.10.47.54.mp4MacOS: Chrome / SafariScreen.Recording.2025-02-03.at.10.53.57.AM.movMacOS: DesktopScreen.Recording.2025-02-03.at.10.52.57.AM.mov |
No worries, hope you're feeling better! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and tests well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 9.0.94-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.0.94-25 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.0.94-25 🚀
|
Explanation of Change
On some devices, the Lottie animation runs with high CPU usage, preventing
runAfterInteractions
from executing (in this case, the Text focus logic runs insiderunAfterInteractions
). To address this, we need to pause the animation when the screen is blurred to improve performance and prevent memory leaks. Previously, this was handled for web/desktop, but the case formWeb
was missed. This PR covers that missing case.Fixed Issues
$ #53208
PROPOSAL: #53208 (comment)
Tests
Offline tests
Same above
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Android: Native
No, this change applies only to mWeb
Android: mWeb Chrome
media_20250128_080316_4531439591937098808.mp4
iOS: Native
No, this change applies only to mWeb
iOS: mWeb Safari
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-01-28.at.08.00.08.mp4
MacOS: Chrome / Safari
No, this change applies only to mWeb
MacOS: Desktop
No, this change applies only to mWeb