Fix - magic input loses focus when clicked on didn't receive magic code#22265
Conversation
|
@narefyev91 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] |
|
@rushatgabhane will you be able to handle the reviewer checklist here? |
MariaHCD
left a comment
There was a problem hiding this comment.
Thanks for the fix! This change looks good to me. Can we also test entering an invalid magic code and that the first cell is not focused in green. To make sure the original issue that was fixed is still working as expected.
|
@MariaHCD I have tested and the original issue that was fixed is still working as expected. Should I update the screen casts so that they show the original issues fix in addition to showing the fix for this one? |
Julesssss
left a comment
There was a problem hiding this comment.
Thanks for the quick fix.
That's fine, as long as you tested it, we're good to go! |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-05.at.5.38.58.PM.movDesktopScreen.Recording.2023-07-05.at.5.39.55.PM.mov |
|
I'm having trouble with my local mobile builds, trying a prod build: https://github.com/Expensify/App/actions/runs/5465151697 |
sorry, i was out. thanks for taking care of this! |
|
Checked off Android mWeb, iOS native, and iOS mWeb. Will test Android native once the build completes... |
|
Build actually in progress this time 🤞 |
|
🧪🧪 Use the links below to test this build in android and iOS. Happy testing! 🧪🧪 |
|
Okay! Checklist complete, I'm about to CP |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…when-clicked-on-Didn't-receive-magic-code Fix - magic input loses focus when clicked on didn't receive magic code (cherry picked from commit 8989aa0)
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.3.36-5 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.36-5 🚀
|




Details
Prevent input from losing focus when clicked on
Didn't receive magic code?option.Fixed Issues
$ #22258
PROPOSAL: #22258 (comment)
Tests
Request magic code intimer to finish and click onDidn't receive magic code?option.Offline tests
Not applicable since connection is required.
QA Steps
Same as
TestsSection.PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
MagicInputBlurWeb.mov
Mobile Web - Chrome
mwebChromeMagicCode.mov
Mobile Web - Safari
safariMagicCode.mov
Desktop
DesktopMagicCode.mov
iOS
iOS.mov
Android
androidNativeBlur.mov