Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
avoid <div> inside <p>
Roman Pominovc0e3520863e0
diff --git a/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsx b/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsxindex 76b3356bb9..e9942d968a 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsx+++ b/apps/designer/app/designer/features/sidebar-left/panels/pages/settings.tsx@@ -14,7 +14,7 @@ import { useFetcher, type FetcherWithComponents } from "@remix-run/react";import { ChevronDoubleLeftIcon } from "@webstudio-is/icons";import type { ZodError } from "zod";import { BaseHeader } from "../../lib/header";-import { useEffect, useRef, useState } from "react";+import React, { useEffect, useRef, useState } from "react";import { type Page } from "@webstudio-is/project";const Group = styled(Flex, {@@ -34,7 +34,12 @@ const ErrorsTooltip = ({errors: string[] | undefined;children: React.ComponentProps<typeof Tooltip>["children"];}) => {- const content = errors?.map((error, i) => <div key={i}>{error}</div>);+ const content = errors?.map((error, i) => (+ <React.Fragment key={i}>+ {i > 0 && <br />}+ {error}+ </React.Fragment>+ ));return (// We intentionally always pass non empty content to avoid optimization inside Tooltip// where it renders {children} directly if content is empty.