Skip to content

Rich Text field ignores custom Label component #6081

@CherryDT

Description

@CherryDT

Link to reproduction

No response

Describe the Bug

I have a rich text field (using Slate) which has a custom Label component. The component is ignored and the default label is rendered. The same component works in other fields.

Looking at the admin.components object at runtime, it is suddenly empty:

image

Probably something goes wrong while merging the data in admin because I can see both elements/leaves (which comes from the global editor config) and disableBulkEdit (which comes from the field config), so there must be some kind of merging happening, and I assume my field config's components object gets overridden somehow.

To Reproduce

Create a Slate rich text field with a custom label component in the field config.

Payload Version

2.14.2

Adapters and Plugins

db-mongodb, bundler-webpack, richtext-slate

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions