fixed auto submit form when enter key pressed in selection modals#30300
fixed auto submit form when enter key pressed in selection modals#30300Li357 merged 4 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! |
|
@aimane-chnaif 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] |
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
@aimane-chnaif I did not find any place where we should allow propagation , though timezoneSelectPage , LanguagePage , PronounsPage are few pages where we are using SelectionList, but all these places we do have API call on select row to set the users data, allowing or disallowing propagation does not have any effect on these |
ok, I think it's fine to stop propagation whenever needed. |
Reviewer Checklist
Screenshots/VideosWebweb1.movweb2.movweb3.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
Contributor already signed here. |
|
@Li357 requesting you please review this PR . |
|
Apologies for the delay as I'm working part-time. Thanks for getting this through! |
|
✋ 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/Li357 in version: 1.3.94-0 🚀
|
1 similar comment
|
🚀 Deployed to staging by https://github.com/Li357 in version: 1.3.94-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.94-2 🚀
|
|
🚀 Deployed to staging by https://github.com/Li357 in version: 1.3.95-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.95-9 🚀
|
Details
Fixed Issues
$ #24198
$ #26345
PROPOSAL: #24198 (comment)
Tests
For state selection
1-Go to settings -> workspaces -> your workspace -> add bank 2- account -> connect manually.
3- Fill in the data.
4- Click on the "Connect" button.
5- Open the state search page.
6- Use the arrow keys to navigate to a state.
7- Press Enter.
8- Observe that state is selected and no error is shown
Offline tests
QA Steps
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
Android: Native
android-dob-final-compressed.mp4
Android: mWeb Chrome
androind-mweb-compressed-final.mp4
iOS: Native
ios-final-compressed.mp4
iOS: mWeb Safari
ios-mweb-year-state-final-compressed.mp4
MacOS: Chrome / Safari
web-year-selection-final.mov
web-state-selection-final.mov
MacOS: Desktop
desktop-final-compressed.mp4