-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
defaultValue类型为number时, 点击编辑 setFieldsValue的值会被覆盖掉 #3274
Comments
|
不好意思哈,这是复现条件:
这两个组件,只要 defaultValue 是 number 类型就会有问题
|
版本是最新的,昨晚上克隆的 |
是有这个问题,我遇到在弹框中,Select的defaultValue如果是number 类型 用setFieldsValue也设置不上值 |
1 task
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
描述 Bug
请清晰地描述此 Bug 的具体表现。
复现 Bug
请描述在演示页面中复现 Bug 的详细步骤,以确保我们可以理解并定位问题。部分 Bug 如果未在 Demo 中涉及,请务必提供关键代码
系统信息
{
field: 'orderNo',
label: '排序',
component: 'InputNumber',
defaultValue: 100,// 这里是数字
required: true,
}
src\components\Form\src\hooks\useFormEvents.ts
315行 isEmpty(currentFieldsValue[item.field])) 这里好像不对,大佬们看看什么问题
The text was updated successfully, but these errors were encountered: