Skip to content

Multiple form components have the same formitem attribute values, rendering multiple identical ID attributes #4362

@tengli1990

Description

@tengli1990
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.2

Environment

macOS Catalina 10.15.7 (19H524)、Chrome 91.0.4472.114(正式版本)、vue ^3.0.11

Reproduction link

https://2x.antdv.com/components/form-cn

Steps to reproduce

打开https://2x.antdv.com/components/form-cn 并查看控制台,[DOM] Found 2 elements with non-unique id #name: (More info: https://goo.gl/9p2vKq)

What is expected?

The formitem attribute value in multiple form components is the same, and the same ID is prohibited

What is actually happening?

Multiple form components have the same formitem attribute values, rendering multiple ID attributes, resulting in a warning: found 2 elements with non unique ID # type: (more info: https://goo.gl/9p2vKq )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions