fix: email and username fields rendering in drawers (#7520)

Fixes https://github.com/payloadcms/payload/issues/7428

Now email and username fields are rendered with the RenderFields
component, making them behave similarly to other fields. They now appear
and can respect doc permissions, readOnly settings, etc.
This commit is contained in:
Jarrod Flesch
2024-08-05 20:18:32 -04:00
committed by GitHub
parent 5d1cc760c9
commit 442189ec48
23 changed files with 131 additions and 50 deletions

View File

@@ -58,7 +58,7 @@ const RichTextField: React.FC<
richTextComponentMap: Map<string, React.ReactNode>
validate?: RichTextFieldValidation
width?: string
} & FormFieldBase
} & Omit<FormFieldBase, 'validate'>
> = (props) => {
const {
name,