Fix - Pressing enter twice on selecting currency from search closes the send money/request money option #18265#18853
Conversation
|
@alex-mechler @abdulrahuman5196 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] |
|
@abdulrahuman5196 both points duly noted, I will fix them now |
|
@abdulrahuman5196 Adjustments have been applied |
|
@AmjedNazzal Thanks for the making the changes. On high level looks good to me. Will work on Reviewer's checklist tomorrow morning and will request if any more changes are required. |
|
Apart from the code.
|
c11179e to
0f222ef
Compare
|
@abdulrahuman5196 I actually did feel like 300 was too low but also I didn't want to affect cases where "canSelectMultipleOptions" is true too much, so thank you for letting me know I can seperate the two and handle only the case where canSelectMultipleOptions is false, I have updated the commit to seperate the two cases and increased 300 to 500 which felt like a good time when I tried to rapidly press Enter. |
|
I have also changed the PR Details section to remove the long explanation |
Reviewer Checklist
Screenshots/VideosWebUntitled.mp4Mobile Web - Chromeaz_recorder_20230513_205828.mp4Mobile Web - SafariScreenRecording.movDesktopScreen.Recording.2023-05-13.at.8.19.34.PM.moviOSScreen.Recording.2023-05-13.at.8.27.39.PM.movAndroidUntitled.mp4 |
|
@AmjedNazzal In author's checklist, offline tests is also same as tests? Could you update that |
|
@abdulrahuman5196 Yes sorry I've updated that, the tests are all the same |
There was a problem hiding this comment.
@alex-mechler Changes looks good to me and completed reviewer checklist as well - #18853 (comment)
alex-mechler
left a comment
There was a problem hiding this comment.
Thanks for the quick work here!
|
✋ 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/alex-mechler in version: 1.3.15-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.3.15-12 🚀
|
Details
Fixes the issue with pressing Enter multiple times on selecting currency closing the entire modal by adding a logic to detect multiple fast Enter presses and handling it properly to prevent the issue behaviour.
Fixed Issues
$ #18265
PROPOSAL: #18265 (comment)
Tests
Offline tests
Same steps as the Tests
QA Steps
Same steps as the Tests
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
Screen.Recording.2023-05-12.at.2.03.44.PM.mov
Mobile Web - Chrome
Screen.Recording.2023-05-12.at.7.42.51.PM.mov
Mobile Web - Safari
Screen.Recording.2023-05-12.at.7.39.38.PM.mov
Desktop
Screen.Recording.2023-05-12.at.2.01.41.PM.mov
iOS
Screen.Recording.2023-05-12.at.2.52.26.PM.mov
Android
Screen.Recording.2023-05-12.at.3.25.51.PM.mov