You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the fix in #4660 — that resolves the keystroke path that left a childless list item.
A quick follow-up: a childless list item can also come straight from Markdown, which #4660 doesn't cover. A bullet list with an empty middle item — setContent('* A\n* \n* B') — still parses to a list-item with zero children, and the original symptom remains: with the caret in "B", ArrowUp doesn't move it up to "A" (and ArrowDown from "A" can't reach "B").
The cause is the one your commit message already names — previousContentInContext / nextContentInContext return null when the adjacent sibling is an empty container with no content descendant.
I have a small fix that makes those two helpers skip empty sibling containers, with ArrowUp/ArrowDown regression tests. Happy to open a PR if that's useful — or feel free to fold it into your own work.
Activity
fix(muya): keep list item non-empty on Enter in empty first paragraph (…
FurkaanBoraa commentedon Jun 25, 2026
Thanks for the fix in #4660 — that resolves the keystroke path that left a childless list item.
A quick follow-up: a childless list item can also come straight from Markdown, which #4660 doesn't cover. A bullet list with an empty middle item —
setContent('* A\n* \n* B')— still parses to alist-itemwith zero children, and the original symptom remains: with the caret in "B", ArrowUp doesn't move it up to "A" (and ArrowDown from "A" can't reach "B").The cause is the one your commit message already names —
previousContentInContext/nextContentInContextreturnnullwhen the adjacent sibling is an empty container with no content descendant.I have a small fix that makes those two helpers skip empty sibling containers, with ArrowUp/ArrowDown regression tests. Happy to open a PR if that's useful — or feel free to fold it into your own work.
fix(muya): skip empty sibling containers when navigating across blocks (