-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lexical / Paragraph menu fails in modal view #4410
Comments
Hey @patricsgamma , I cannot reproduce it - even for very deeply nested drawers: Screenshot.2023-12-07.at.14.33.02.mp4When used inside a Blocks field, like you did: Screenshot.2023-12-07.at.14.35.56.mp4Could you attach a reproduction, following this reproduction guide? |
Reproduction added |
Screenshot.2023-12-20.at.20.57.18.mp4The issue seems to be due to the condition in your You need to make sure you're returning a boolean, e.g. changing That being said, it seems weird that simply not returning a boolean causes this issue - I'll dig into that |
Closing this in favor of #4577 which describes the core issue. Will investigate this there |
This issue has been automatically locked. |
Link to reproduction
https://github.com/patricsgamma/payload/tree/test/modal_slash
Describe the Bug
At the start of a new Paragraph within a lexical richtext field, when entering a slash
"/"
a menu for paragraph options appears.✔️ This works well within a normal create or edit page
❌ It does not work when the lexical editor is embedded within a modal view. The slash "/" is just typed as such but not triggering the menu.
✔️ Video of working menu in create view
Creating a ConversationText within its own collection create view works.
working_menu.mov
❌ Video of failing modal view:
Creating a ConversationText within its parent Conversation fails.
failing_menu.mov
To Reproduce
Payload Version
"payload": "^2.3.1"
Adapters and Plugins
The text was updated successfully, but these errors were encountered: