diff --git a/apps/web/src/lib/editor/extensions/element/node.tsx b/apps/web/src/lib/editor/extensions/element/node.tsx index f2db0737..798ca216 100644 --- a/apps/web/src/lib/editor/extensions/element/node.tsx +++ b/apps/web/src/lib/editor/extensions/element/node.tsx @@ -145,12 +145,7 @@ const Element = BaseElement.extend< while (currentFragment.size > expectedSize) { const newFragment = currentFragment.child(0).content; - if ( - newFragment.size < expectedSize && - ["bulletList", "orderedList", "taskList"].includes( - currentFragment.child(0).type.name - ) - ) { + if (newFragment.childCount !== 1) { break; }