ant-design / ant-design/pro-components

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

Open
#9,110 1 comment 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 描述

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

### 📷 复现步骤

### 🏞 期望结果

### 💻 复现代码

### © 版本信息

- ProComponents 版本: @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 at the ProFormText implementation and compare its help and rule-validation behavior with the provided antd Form.Item example. Reproduce the issue using @ant-design/pro-components 2.8.7 with help and a required rule, then verify that the help message changes to the validation-error styling when the rule fails.

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
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.