-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
Description
Prerequisites
- I have searched the existing issues
- I understand that providing a SSCCE example is tremendously useful to the maintainers.
- I have read the documentation
- Ideally, I'm providing a sample JSFiddle, Codesandbox.io or preferably a shared playground link demonstrating the issue.
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
- Create a schema with a boolean field
- Add a uiSchema that specifies
ui:widget: "checkbox"
for that field - Add a
ui:description
to the same field in the uiSchema - Observe that the description text appears twice
Example: Playground
Environment
- OS:
- Node:
- npm:
Anything else?
No response