fix(richtext-lexical): field.admin overrides were ignored in RenderLexical helper (#14024)
We forgot to spread field.admin, thus you were not able to override this when using `RenderLexical`.
This commit is contained in:
@@ -52,6 +52,8 @@ export const RenderLexical: React.FC<
|
||||
...((field as RichTextField) || {}),
|
||||
type: 'richText',
|
||||
admin: {
|
||||
...((field as RichTextField)?.admin || {}),
|
||||
// When using "fake" anchor fields, hidden is often set to true. We need to override that here to ensure the field is rendered.
|
||||
hidden: false,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user