Custom label for field in lexical block crashes admin panel
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
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.
This issue was automatically closed due to lack of activity.
Can't reproduce anymore as of 3.16.0
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.