chore: No more clientside markdown when importing Checkbox (#25278)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable playwright/missing-playwright-await */
|
||||
import { render, fireEvent } from "@testing-library/react";
|
||||
import React from "react";
|
||||
import { vi } from "vitest";
|
||||
|
||||
@@ -2,8 +2,6 @@ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
||||
import { useId } from "@radix-ui/react-id";
|
||||
import type { InputHTMLAttributes } from "react";
|
||||
import React, { forwardRef } from "react";
|
||||
|
||||
import { markdownToSafeHTML } from "@calcom/lib/markdownToSafeHTML";
|
||||
import classNames from "@calcom/ui/classNames";
|
||||
|
||||
import { Icon } from "../../icon";
|
||||
@@ -100,7 +98,7 @@ const CheckboxField = forwardRef<HTMLInputElement, Props>(
|
||||
rest.descriptionClassName
|
||||
)}
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: markdownToSafeHTML(descriptionAsSafeHtml),
|
||||
__html: descriptionAsSafeHtml,
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user