P2Package: datetimeType: bughelp wanted
仓库指标
- 星标
- (20,263 个星标)
- PR 合并指标
- (PR 指标待抓取)
描述
Environment
- Package version(s): Datetime 4.4.7 and Datetime2 0.9.5
- Operating System: Windows 11
- Browser name and version: Chrome 107 and Firefox 107
Code Sandbox
https://codesandbox.io/s/bold-david-nbr76c?file=/src/DatetimeExample.tsx
Steps to reproduce
Popover
- Click on Dateinput or Dateinput2 to show popover
- Change the hour field of the time picker to something like 10
- Click outside the popover to close it.
- Click on the Dateinput or Dateinput2 to show popover
- Change the hour field of the time picker to something like 11
- Click outside the popover to close it.
maxdate
- Click on Dateinput or Dateinput2 to show popover
- Change the hour field of the time picker to something like 10
Actual behavior
Popover With step 6 the popover will close and reopen straight away
maxdate For Dateinput it will accept the picked time but Dateinput will show a red border indicating the selected time is invalid
Expected behavior
Popover With step 6 the popover should close and not reopen
maxdate The maxdate should allow any hour of the maxday for Dateinput2 component