baidu / baidu/amis

issue SDK 6.2.2 InputDatetimeRange 结束时间选择, 默认日期应为开始时间日期

Open
#9,783 0 comments 0 reactions 0 assignees View on GitHub
need confirm
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

SDK 6.2.2
InputDatetimeRange 在选择了开始时间的情况下.
结束时间的日期, 不应该在开始时间日期之前.

![image](https://github.com/baidu/amis/assets/158136744/de40b56a-3fa8-45d1-94e4-1c69e42b87a9)
复现方式:
选择开始日期和时间, 点击确定
点击结束时间选择器的 "小时 分", 则默认日期, 为当前日期, 而不是开始时间的日期. 给使用者误解
导致结束时间的日期先于开始时间日期, 高亮显示.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the InputDatetimeRange component and the code handling the end-time selector after a start time is confirmed. Reproduce the described sequence and inspect how the default end date is chosen. Done means the end-time selector uses the selected start date rather than the current date and no longer highlights an earlier end date.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.