Skip to content

Commit 810da54

Browse files
authored
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`.
1 parent a938ad6 commit 810da54

File tree

1 file changed

+2
-0
lines changed
  • packages/richtext-lexical/src/field/RenderLexical

1 file changed

+2
-0
lines changed

packages/richtext-lexical/src/field/RenderLexical/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ export const RenderLexical: React.FC<
5252
...((field as RichTextField) || {}),
5353
type: 'richText',
5454
admin: {
55+
...((field as RichTextField)?.admin || {}),
56+
// When using "fake" anchor fields, hidden is often set to true. We need to override that here to ensure the field is rendered.
5557
hidden: false,
5658
},
5759
},

0 commit comments

Comments
 (0)