ant-design / ant-design/pro-components

🐛 [BUG]ProFormText设置了help不生效

Open
#9,615 4 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

### 🐛 bug 描述

ProFormText设置了help属性并且也设置了rule校验,但是rule检验不通过时,help提示信息没有变成红色(之前的版本,我记得是可以的)

### 📷 复现步骤 | Recurrence steps

### 🏞 期望结果 | Expected results

### 💻 复现代码 | Recurrence code

### © 版本信息

- Ant Design Pro 版本: @ant-design/pro-components 2.8.7
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]

### 🚑 其他信息

下面使用antd是正常的
```js



```
antd正常的演示:

![Image](https://github.com/user-attachments/assets/a6c50c2f-4367-42f1-a898-2e0ee3c3349c)

Contributor guide

Open the contributing guide

Research direction

Start with the ProFormText usage described in the issue, using @ant-design/pro-components 2.8.7, and compare it with the shown antd Form.Item example. Reproduce a failed required rule and trace the help rendering and validation behavior. Done means the help text becomes red when the rule fails, with a regression check for this case.

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
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.