-
Notifications
You must be signed in to change notification settings - Fork 54
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(DGHT-180): fix InputDateTimeRangePicker gets wrong error message for multiple errors #5388
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…for multiple errors
hbhong
temporarily deployed
to
pull_request_unsafe
August 12, 2024 07:43 — with
GitHub Actions
Inactive
hbhong
temporarily deployed
to
pull_request_unsafe
August 12, 2024 07:43 — with
GitHub Actions
Inactive
hbhong
temporarily deployed
to
pull_request_unsafe
August 12, 2024 07:43 — with
GitHub Actions
Inactive
Size Change: +642 B (0%) Total Size: 16.9 MB
ℹ️ View Unchanged
|
yyanwang
approved these changes
Aug 12, 2024
aamalric-talend
approved these changes
Aug 12, 2024
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
hbhong
had a problem deploying
to
pull_request_unsafe
August 12, 2024 08:58 — with
GitHub Actions
Failure
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the problem this PR is trying to solve?
InputDateTimeRangePicker component gets wrong error message for multiple errors.
To reproduce:
1.Init component with start time and end time, there is no error message.
2. Remove the date from date field for the end time, it shows "Date is required", it is ok.
3. Remove the time from time field for the start time, it shows "Time is required", it is ok.
4. Refill the time field for the start time, it shows "Start date should comes before end date", it should show the remaining error "Date is required".
What is the chosen solution to this problem?
Please check if the PR fulfills these requirements
yarn changeset
to a request a release from the CI if wanted.[ ] This PR introduces a breaking change