Closed amanharwara closed 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 | Nov 4, 2024 2:15pm |
lexical-playground | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 4, 2024 2:15pm |
Path | Size |
---|---|
lexical - cjs | 29.94 KB (0%) |
lexical - esm | 29.78 KB (0%) |
@lexical/rich-text - cjs | 38.59 KB (0%) |
@lexical/rich-text - esm | 31.65 KB (0%) |
@lexical/plain-text - cjs | 37.25 KB (0%) |
@lexical/plain-text - esm | 28.94 KB (0%) |
@lexical/react - cjs | 40.32 KB (0%) |
@lexical/react - esm | 33.01 KB (0%) |
Hi, I've added a test for this bug fix here: https://github.com/facebook/lexical/pull/6826
also wanted to point out that this PR fixes issue #6793 so we can close that.
Currently,
ListNode.append
will always convert an element node into a text node, even if the element node is inline and can be appended as a whole which can end up removing formatting and unwrapping things like links.While this is rarely hit, since most of the code in the lexical codebase accounts for appending to a child list item instead of the list directly, I think it still makes sense for this to be correct.