fix: custome form support render html in form text

This commit is contained in:
shuai 2023-08-08 17:58:14 +08:00
parent 3c80df666d
commit 6e25d63abd
1 changed files with 4 additions and 1 deletions

View File

@ -365,7 +365,10 @@ const SchemaForm: ForwardRefRenderFunction<FormRef, FormProps> = (
{fieldState?.errorMsg}
</Form.Control.Feedback>
{description ? (
<Form.Text className="text-muted">{description}</Form.Text>
<Form.Text
className="text-muted"
dangerouslySetInnerHTML={{ __html: description }}
/>
) : null}
</Form.Group>
);