Skip to content

🐛[BUG] 3.1.3-0 版本 使用 ProFormItem 自定义表单组件控制台报错 #9603

@Kitercc

Description

@Kitercc

🐛 bug 描述

使用 ProFormItem 自定义表单组件后控制台出现

Warning: React does not recognize the fieldProps prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase fieldprops instead. If you accidentally passed it from a parent component, remove it from the DOM element.

💻 复现代码

<ProFormItem label='email' name="email">
   <span>xxx</span>
</ProFormItem>

© 版本信息

  • ProComponents [ 3.1.3-0 ]
  • antd [ 6.3.6 ]
  • react [ 18.3.1 ]

🚑 其他信息

ProFormFields 表单项中的部分组件也会出现这个问题,例如:

<ProFormCheckbox name="xxx">xxx</ProFormCheckbox>
Image

此bug不影响功能使用,仅会在控制台报错

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions