-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
plugin: richtext-slate@payloadcms/richtext-slate@payloadcms/richtext-slatestatus: needs-reproIf an issue does not include a reproductionIf an issue does not include a reproductionstatus: needs-triagePossible bug which hasn't been reproduced yetPossible bug which hasn't been reproduced yet
Description
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:
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
plugin: richtext-slate@payloadcms/richtext-slate@payloadcms/richtext-slatestatus: needs-reproIf an issue does not include a reproductionIf an issue does not include a reproductionstatus: needs-triagePossible bug which hasn't been reproduced yetPossible bug which hasn't been reproduced yet
