From 97c120ab2885175409718e42caefc8a048c4cfef Mon Sep 17 00:00:00 2001 From: Sasha <64744993+r1tsuu@users.noreply.github.com> Date: Thu, 19 Dec 2024 01:58:59 +0200 Subject: [PATCH] fix(richtext-*): use correct `"for"` attribute for label (#10036) Fixes https://github.com/payloadcms/payload/issues/10034 --- packages/richtext-lexical/src/field/Field.tsx | 2 +- packages/richtext-slate/src/field/RichText.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/richtext-lexical/src/field/Field.tsx b/packages/richtext-lexical/src/field/Field.tsx index a970c956b2a..704484a6d0e 100644 --- a/packages/richtext-lexical/src/field/Field.tsx +++ b/packages/richtext-lexical/src/field/Field.tsx @@ -106,7 +106,7 @@ const RichTextComponent: React.FC< CustomComponent={Error} Fallback={} /> - {Label || } + {Label || }
{}}> {BeforeInput} diff --git a/packages/richtext-slate/src/field/RichText.tsx b/packages/richtext-slate/src/field/RichText.tsx index 0040b787b42..03a0ca15cae 100644 --- a/packages/richtext-slate/src/field/RichText.tsx +++ b/packages/richtext-slate/src/field/RichText.tsx @@ -313,7 +313,7 @@ const RichTextField: React.FC = (props) => { return (
- {Label || } + {Label || }