-
Notifications
You must be signed in to change notification settings - Fork 3k
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: No required field validation state picker #33926
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
src/components/StatePicker/index.js
Outdated
if (!isUpdateStateInput) { | ||
onBlur(); | ||
} |
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.
- There are a few methods that can make the picker modal hidden, for example, clicking on back button, or clicking on any option.
- We only call the onBlur function if the modal is hidden when user clicks on the back button
- If we call the onBlur function if the modal is hidden when user clicks on any option as well, and the user did not open the picker modal before, then opened it, and clicked on any option, the modal will be hidden and the error message appears for a while
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.
Let's rename isUpdateStateInput
to shouldBur
and default it to true , also let's add a comment explaining it.
src/components/StatePicker/index.js
Outdated
if (!isUpdateStateInput) { | ||
onBlur(); | ||
} |
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.
Let's rename isUpdateStateInput
to shouldBur
and default it to true , also let's add a comment explaining it.
Reviewer Checklist
Screenshots/VideosAndroid: NativeCleanShot.2024-01-05.at.12.43.15.mp4Android: mWeb ChromeCleanShot.2024-01-05.at.12.48.59.mp4iOS: mWeb SafariCleanShot.2024-01-05.at.12.51.47.mp4MacOS: Chrome / SafariCleanShot.2024-01-05.at.11.14.25.mp4 |
@DylanDylann Please add the missing screenshots. Thank you. |
@DylanDylann friendly bump. |
@fedirjh I updated the screenshots and fixed all your comments |
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.
Looks good and tests well.
✋ 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/nkuoch in version: 1.4.24-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.24-3 🚀
|
Details
Fixed Issues
$ #30195
PROPOSAL: #30195 (comment)
Tests
Offline tests
QA Steps
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
Screencast.from.04-01-2024.16.11.38.webm
Android: mWeb Chrome
Screencast.from.04-01-2024.15.05.43.webm
iOS: Native
Screencast.from.09-01-2024.02.37.18.webm
iOS: mWeb Safari
Screencast.from.04-01-2024.15.05.43.webm
MacOS: Chrome / Safari
Screencast.from.04-01-2024.15.00.51.webm
MacOS: Desktop
Screencast.from.09-01-2024.02.27.58.webm