Link Editor In Richtext Fields Is Always Displayed Regardless Of Whether Custom Fields are Defined
Describe the Bug
Issue looks to be caused by: https://github.com/payloadcms/payload/blob/9c6ab39bf489876e21e7c7d5dc714858d91ac335/packages/richtext-lexical/src/field/features/Link/plugins/floatingLinkEditor/utilities.ts#L50
This should be checking extraFields.length not fields.length
Link to the code that reproduces this issue
https://github.com/zjohnson-messagedigital/payload/tree/repro-fields-group-in-lexical-richtext
Reproduction Steps
- Configure payload to use default slateEditor in payload config
- Add rich text field to collection
- Create item in collection
- Add a link to the field Expected: Only default link fields should be visible Actual: Default fields plus empty group field named "Fields" is visible
Which area(s) are affected? (Select all that apply)
plugin: richtext-lexical
Environment Info
Using payload version v2.32.2
Hi, this has been fixed as of Payload 3.28.1.
Payload v2 will only receive critical and security fixes
Ugh, too bad my multi-tenant and sso customizations are preventing me from migrating ☹
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.