-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix form submit behavior #34471
Fix form submit behavior #34471
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
@cubuspl42 Should I modify the logic used here for native devices? #24636 |
Speaking frankly, I already lost some of the context of this issue. I would love to be able to buy more mental RAM. Would you quickly sum up our two basic options here? What will be the consequences (especially the ones observable with the naked eye) of modifying the mentioned |
I think when the implementation was done, they haven't evaluated the option of native platform. Right now, it does not submit on enter in mWeb devices only (not on native). I think we should modify it for not submit on native devices as it will allow us to press enter for multi-line field in native. |
So, currently, we can't add a multi-line description on Native? Or did I get this wrong |
No. Wait let me reach out on slack to clarify. |
@shubham1206agra Please ping me when what we discussed on Slack is ready to review! I also assume that the PR should be ready to be un-drafted when it happens. |
Yes I will ping you |
Reproducible issue (also present on main) [NAB] |
Do we have a tracking issue for this? |
@cubuspl42 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] |
Nope |
I am not sure why performance test is failing. |
I noticed that you mentioned we're holding on #34474 |
Typically it means they are failing on |
Bump @shubham1206agra. We also have conflicts now. Let's try to get this one to the finish line! |
@cubuspl42 I still am not able to repro this. Let me ask an adhoc build here. |
We could potentially ignore this issue, especially if it's not easily reproducible. It's quite a corner case. |
Sorry, I was confused. This doesn't affect only single-word address lines. It doesn't work when the suggestion list is visible. It does work if I un-focus and re-focus the "Address line" field, so the suggestion list doesn't open. Then, I can submit the input with the "Go" button. form-submit-issue-2-android-web-compressed.mp4It may be related to the fact that I have the rest of the form filled out. Anyway, I agree that we should wrap this PR up as soon as possible. I want to ask you to remove the support for address search from this PR. This is not a typical text input; we can consider it out of scope. It's not worth the risk. |
@cubuspl42 it seems like we're had some commits since your last comment. Has your comment been addressed? |
Reviewer Checklist
Screenshots/VideosAndroid: Nativefix-form-submit-android-compressed.mp4Android: mWeb Chromefix-form-submit-android-web-compressed.mp4iOS: Nativefix-form-submit-ios-compressed.mp4iOS: mWeb Safarifix-form-submit-ios-web-compressed.mp4MacOS: Chrome / Safarifix-form-submit-web-converted.mp4MacOS: Desktopfix-form-submit-desktop-converted.mp4 |
I'm still having problems on Android/Web, this time also with plain text inputs. Maybe this is something on my side?... @luacmartins Would you have a possibility to test this PR on Android/Web? |
@cubuspl42 sorry, I'm only working 50% today and won't have time to do that today. It'd be great if you could figure this out today. Otherwise I can try testing tomorrow. |
I'll try testing on an old physical Android smartphone I own. Let me charge it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's working on my physical Android device on Chrome 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
✋ 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/luacmartins in version: 1.4.40-0 🚀
|
this issue might be related to this deploy blocker |
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.40-5 🚀
|
Details
Fixed Issues
$ #31433
PROPOSAL: #31433 (comment)
Tests
Offline tests
Same as Tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screen.Recording.2024-01-22.at.12.54.46.PM.mov
Android: mWeb Chrome
Screen.Recording.2024-01-22.at.2.27.37.PM.mov
iOS: Native
Screen.Recording.2024-01-22.at.3.10.52.PM.mov
iOS: mWeb Safari
Screen.Recording.2024-01-22.at.2.30.55.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-01-22.at.2.11.34.PM.mov
MacOS: Desktop
Screen.Recording.2024-01-22.at.3.00.51.PM.mov