Skip to content

Passing idPrefix prop to the Form causes the form description to duplicate #3624

Open
@wangleng-shopee

Description

@wangleng-shopee

Prerequisites

What theme are you using?

antd

Version

5.6.2 5.7.2

Current Behavior

If we pass the idPrefix prop to the <Form />, the description of the form duplicates.

Screenshot 2023-04-26 at 14 40 54

Expected Behavior

There should be no duplicated description.

Steps To Reproduce

  1. Visit https://codesandbox.io/s/github/wangleng-shopee/rjsf-idprefix-duplicate?file=/src/App.tsx
  2. Use the "Add idPrefix to Form" switch to toggle the idPrefix prop, in order to see the effect.

Environment

- OS: macOS
- Node: 16.14.0
- yarn: 1.22.17

Anything else?

No response

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