payload icon indicating copy to clipboard operation
payload copied to clipboard

Custom label for field in lexical block crashes admin panel

Open SimonVreman opened this issue 1 year ago • 1 comments

Link to reproduction

No response

Payload Version

3.0.0-beta.65

Node Version

20.11.0

Next.js Version

15.0.0-canary.64

Describe the Bug

The admin panel crashes completely with React error Cannot assign to read only property 'label' of object '#<Object>' when using a block, which has a field with a custom label, inside the lexical editor.

Reproduction Steps

Example configuration:

{
  type: 'text',
  name: 'myField',
  admin: {
    components: {
      Label: CustomLabel,
    },
  },
}

Which is then used within a block, added to the lexical editor:

BlocksFeature({ blocks: [MyBlock] }),

And this editor is then used for any rich text field.

Adapters and Plugins

richtext-lexical

SimonVreman avatar Jul 18 '24 08:07 SimonVreman

This issue has been marked as stale due to lack of activity.

To keep this issue open, please indicate that it is still relevant in a comment below.

github-actions[bot] avatar Dec 13 '24 05:12 github-actions[bot]

This issue was automatically closed due to lack of activity.

github-actions[bot] avatar Dec 21 '24 05:12 github-actions[bot]

Can't reproduce anymore as of 3.16.0

AlessioGr avatar Jan 10 '25 22:01 AlessioGr

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.

github-actions[bot] avatar Jan 12 '25 04:01 github-actions[bot]