Repository navigation
fix input not focused after skeleton loader. - #73652
Conversation
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
@thesahindia 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] |
|
@thesahindia 👋 , this PR is a follow up to a regression we caused, hope you don't mind me taking over the review |
|
forgot to add it to k2, sorry, checking today |
There was a problem hiding this comment.
Also, @Krishna2323 i think this change we did previously caused a regression AFAIR, have you made sure we didn't cause the same regression again?
There was a problem hiding this comment.
@allgandalf this warning isn't related to this PR changes. We shouldn't touch this IMO.
i think this change we did previously caused a regression
Yes, I have tested both regressions.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
I will review this over the weekend, have certain migrate critical initiatives to get done with |
| substitutionMap={autocompleteSubstitutions} | ||
| ref={textInputRef} | ||
| autoFocus={autoFocus} | ||
| shouldDelayFocus |
There was a problem hiding this comment.
why should we delay focus on non native platforms ?
There was a problem hiding this comment.
I see you only updated index.native.ts, but what i feel is this should still only be true if the user is on native, otherwise it is always true and doesn't explain why to delay focus on web and then not having index.ts implementation for this.
wdyt @amyevans
There was a problem hiding this comment.
I see you only updated
index.native.ts
I am okay with this implementation method, so I wouldn't personally block on it. But I don't feel that strongly, if you do @allgandalf and can suggest a preferred route there's also no rush
|
@Krishna2323 lets merge main please |
|
✋ 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/amyevans in version: 9.2.58-0 🚀
|
|
🚀 Deployed to production by https://github.com/cristipaval in version: 9.2.58-3 🚀
|
Explanation of Change
<SearchInputSelectionSkeleton />before we render the input. So the hook failed to focus because the input wasn't rendered.App/src/components/Search/SearchInputSelectionWrapper/index.native.tsx
Lines 7 to 20 in e69d4ab
SearchAutocompleteInputcomponent, so the hook is called when the component is mounted.Fixed Issues
$ #65855
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4