Skip to content
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

DatePicker calendar panel initial display error #3043

Closed
wangwc-dev opened this issue Jan 31, 2023 · 0 comments · Fixed by #3045
Closed

DatePicker calendar panel initial display error #3043

wangwc-dev opened this issue Jan 31, 2023 · 0 comments · Fixed by #3045

Comments

@wangwc-dev
Copy link

What version of rsuite are you using?

5.19.0

What version of React are you using?

18.0.0

What version of TypeScript are you using (if any)?

4.4.2

What browser are you using?

Chrome

Describe the Bug

The form contains a date picker, I set this date picker to "CalendarDefaultDate rendered by default" (calendarDefaultDate) is the start time of the day, year/month/day 00:00:00 Similar, but when I clear the date in it When opening the calendar panel, the time in the upper right corner of the panel will reset to the current time instead of 00:00:00. Steps: 1. Select a date and time for the selector that is not 00:00:00, OK. 2. Clear the date in the selector. 3. Click the selector, the time on the calendar panel that appears is the current time. 4. Click again to open the calendar panel, and the time in the upper right corner shows 00:00:00 again.

Expected Behavior

When the date selection box has a time, open the calendar panel to display the date time of the selection box.
When there is no time in the date selection box, the date and time displayed by opening the calendar panel is the date and time set by the calendarDefaultDate property

To Reproduce

  1. Select a date and time for the selector that is not 00:00:00, OK. 2. Clear the date in the selector. 3. Click the selector, the time on the calendar panel that appears is the current time. 4. Click again to open the calendar panel, the time in the upper right corner shows 00:00:00 again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants