facebook / lexical

Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.
https://lexical.dev
MIT License
17.5k stars 1.45k forks source link

When creating a new check list, set the `checked` value of the list item to `false` instead of `undefined` #5978

Open amanharwara opened 2 weeks ago

amanharwara commented 2 weeks ago

At the moment, when creating a new checklist, the newly created list item doesn't have the checked set until the user manually toggles it. This PR makes sure that the checked value is set to false and not undefined. This also makes the behavior in line with the behavior when creating a check list using the markdown transformer.

https://github.com/facebook/lexical/assets/8348101/a065966a-ceae-4ce4-bf11-250a041efd0f

vercel[bot] commented 2 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2024 5:44pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2024 5:44pm