fix: only validateOnBlur if screen is focused#47908
fix: only validateOnBlur if screen is focused#47908puneetlath merged 5 commits intoExpensify:mainfrom
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
@ahmedGaber93 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] |
|
@dominictb please fix the video in mWeb |
Reviewer Checklist
Screenshots/VideosAndroid: Nativea.mp4Android: mWeb Chromeaw.mp4iOS: Native20240823172924930.mp4iOS: mWeb Safariiw.mp4MacOS: Chrome / Safariw.mp4MacOS: Desktop20240823172750514.mp4 |
|
|
||
| const isFocusedRef = useRef(true); | ||
|
|
||
| useFocusEffect( |
There was a problem hiding this comment.
Let's add a comment here explaining what this is doing and why.
Co-authored-by: Puneet Lath <puneet@expensify.com>
|
@puneetlath fixed! |
|
✋ 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/puneetlath in version: 9.0.27-0 🚀
|
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.0.27-1 🚀
|

Details
Fixed Issues
$ #47335
PROPOSAL: #47335 (comment)
Tests
Verify that: "Please enter a room name" error does not appear when switching the tab.
Offline tests
QA Steps
Verify that: "Please enter a room name" error does not appear when switching the tab.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.webm
Android: mWeb Chrome
compressed_aweb.webm.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
compressed_iosweb.mp4.mp4
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
web.mov