ant-design / ant-design/pro-components

🐛[BUG] 动态控制是否重渲染 输入disabled 的时候,下面下拉没有禁用, 当选择一个内容后才能触发禁用

Open
#7,842 2 comments 0 reactions 0 assignees View on GitHub
📦 Need to reproduce form
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

### 🐛 bug 描述
[动态控制是否重渲染](https://procomponents.ant.design/components/schema-form#betaschemaform-demo-dynamic-rerender)
https://procomponents.ant.design/components/schema-form#betaschemaform-demo-dynamic-rerender

输入disabled 的时候,下面下拉没有禁用, 当选择一个内容后才能触发禁用。 ProComponents 老版本可以, 升级新版本就和官方demo一样了,也不行了。

### 📷 复现步骤
进入这个页面
[动态控制是否重渲染](https://procomponents.ant.design/components/schema-form#betaschemaform-demo-dynamic-rerender)
输入desabled, 下面的下拉没有禁用。

### 🏞 期望结果
跟老版本一样,能马上进行渲染

### 💻 复现代码

### © 版本信息

- ProComponents 版本: [2.6.34]
- umi 版本
- 浏览器环境 google浏览器
- 开发环境 [windows10]

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Open the linked SchemaForm dynamic-rerender demo and reproduce the behavior with ProComponents 2.6.34 in Chrome: entering disabled should immediately disable the dependent dropdown. Trace the demo's dynamic rerender behavior and verify the fix against the same interaction; no reproduction code or test file is provided in the issue.

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.