payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
25.73k stars 1.64k forks source link

Cannot use link component inside rich text field #8850

Closed itsaalexk closed 3 weeks ago

itsaalexk commented 3 weeks ago

Link to reproduction

No response

Describe the Bug

Link button not working in rich text component with SlateEditor.

We are trying to use link component in rich text field but it does not open when I click on it.

Instead this error is displayed on the console and nothing else happens. We recently updated to the "payload": "^2.30.3", version and also updated this postgres plugin to the following version. "@payloadcms/db-postgres": "^0.8.9",

When I click the link component in RichText field I expect to open a modal but instead I get this error on the console. I have noticed that you are using this library to open such modal @faceless-ui/modal

We are also using this adapter , but it seems to be updated to the latest version @payloadcms/richtext-slate

THIS IS THE ERROR MESSAGE IM GETTING: Image

To Reproduce

Just try to open the link component on RichText field with the latest version and nothing will happen.

Instead i get this error on the console

Image

Payload Version

^2.30.3

Adapters and Plugins

@payloadcms/db-postgres @payloadcms/richtext-slate

antonnystedt commented 3 weeks ago

+1, also seing this issue with v2.30.3

marcmaceira commented 3 weeks ago

This issue is a duplicate of #8576. Make sure to follow it and check out the recommended workaround.

jmikrut commented 3 weeks ago

Hey all, yes, thank you @marcmaceira for linking the duplicate issue. I'll close this one in preference to the other one but we should be able to have this solved shortly.

github-actions[bot] commented 2 weeks ago

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