-
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
year restriction to 4 digit in date inputs #14272
Conversation
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
I think the mistake I made in GitHub link while raising the PR caused @yuwenmemon @mollfpr not taken automatically as a reviewer. |
Reviewer Checklist
Screenshots/VideosWeb14272.Web-Safari.mov14272.Web-Chrome.movMobile Web - Chrome14272.mWeb-Chrome.movMobile Web - Safari14272.mWeb-Safari.movDesktop14272.Desktop.moviOS14272.iOS.movAndroid14272.Android.mov |
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 👍
Just need add clarity to the test case.
- Open any datepicker in the application
- Verify when we reach to year part it won't allow more than 4 digits
@Pujan92 We should specify that the test is only on Web and Desktop. For mWeb and the native platforms just need to verify that the date picker is still working normally.
All yours @yuwenmemon |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
🚀 Deployed to staging by @yuwenmemon in version: 1.2.55-0 🚀
|
🚀 Deployed to production by @AndrewGable in version: 1.2.55-0 🚀
|
@yuwenmemon @mollfpr
Details
Restrict year to 4 digits in the date inputs
max
property to provide max date for the input which won't allow more than 4 digits in year -- Works in Chrometrue
to moment constructor parameterstrict
which considers 4 digit in a year to be valid -- Partially works in Safari & FirefoxFixed Issues
$ #13837
PROPOSAL: #13837 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
Screen.Recording.2023-01-13.at.2.51.43.PM.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
Screen.Recording.2023-01-13.at.3.07.30.PM.mov
iOS
Android