-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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-react] Bug Fix: checklist cannot be toggled in sub-editors #6216
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thanks!
hi @AlessioGr, sorry for the inconvenience caused in the CI do you mind merging latest Main to this branch before we try remerging this PR to main, to make sure all e2e tests are green. Thanks a lot! |
@AlessioGr We have to revert this as it's breaking internally but feel free to post a follow up PR. While |
Description
Checklists within sub-editors do not work. When toggling them, both the click event listeners for the sub-editor, as well as the one for the parent-editor, are triggered. Say the checklist item is untoggled, this would cause the checklist item to be toggled-on and then immediately toggled-off. Visually, it will look like nothing happened at all, as seen in the video.
Adding
event.stopPropagation()
stops the event from being incorrectly propagated up to the parentBefore
CleanShot.2024-05-30.at.17.06.16.mp4
After
CleanShot.2024-05-30.at.17.05.04.mp4