chore: No more clientside markdown when importing Checkbox (#25278)

This commit is contained in:
Alex van Andel
2025-11-19 15:40:37 -03:00
committed by GitHub
parent dd7f108f08
commit 6818806c5e
2 changed files with 1 additions and 4 deletions
@@ -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,
}}
/>
) : (