ant-design / ant-design/pro-components

🐛[BUG] 在 Select dropdownRender 中使用 BetaSchemaForm RangePicker,在选择完 时间之后,在 Select 下拉未收起时,再次选择时间,无法选择开始时间。

Open
#8,833 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

### 🐛 bug 描述
最小代码实现地址:
https://codesandbox.io/p/sandbox/huo-de-xuan-xiang-de-wen-ben-antd-5-21-5-forked-xnjj54
根据以上代码操作:
1. 点击 Select
2. 点击 RangePicker 选择**开始时间**,**结束时间** (依旧聚焦在 结束的时间)
3. 选择完成之后,马上继续选择时间,无法点击**开始时间**

### 📷 复现步骤

最小代码实现地址:
https://codesandbox.io/p/sandbox/huo-de-xuan-xiang-de-wen-ben-antd-5-21-5-forked-xnjj54

### 🏞 期望结果
按照 第三步 可以直接选择开始时间 (应该要在 RangePicker 时间选择面板收起之后,清除掉 focus)

### 💻 复现代码

https://codesandbox.io/p/sandbox/huo-de-xuan-xiang-de-wen-ben-antd-5-21-5-forked-xnjj54

### © 版本信息

- ProComponents 版本: [e.g. 4.0.0]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]

### 🚑 其他信息

![CleanShot 2024-10-28 at 14 55 06](https://github.com/user-attachments/assets/f772d9fd-651e-4c99-8808-88728f10ece6)

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction using Select dropdownRender and BetaSchemaForm RangePicker. Reproduce the two consecutive date selections while the Select dropdown remains open, then trace the focus behavior after the range panel closes. Done means the start time can be selected again without closing the Select dropdown.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.