Skip to content

Duplicated description when using ui:widget #4742

@anya92

Description

@anya92

Prerequisites

What theme are you using?

antd

Version

5.x

Current Behavior

When using a boolean field with ui:widget: "checkbox" specified in the uiSchema, the description text appears duplicated in the rendered form. The description shows up both in its normal location and again below the checkbox input.

Expected Behavior

The description should only appear once, either in its standard position or in the appropriate location for the checkbox widget, but not duplicated.

Steps To Reproduce

  1. Create a schema with a boolean field
  2. Add a uiSchema that specifies ui:widget: "checkbox" for that field
  3. Add a ui:description to the same field in the uiSchema
  4. Observe that the description text appears twice

Example: Playground

Environment

- OS:
- Node:
- npm:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions