editor: fix outline list item collapsing the parent item

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
01zulfi
2025-10-28 13:37:44 +05:00
parent 91ef98df4f
commit c5a82bd779

View File

@@ -154,6 +154,7 @@ export const OutlineListItem = Node.create<ListItemOptions>({
const resolvedPos = editor.state.doc.resolve(pos);
if (isClickWithinBounds(e, resolvedPos, "left")) {
e.preventDefault();
e.stopImmediatePropagation();
editor.commands.command(({ tr }) => {
tr.setNodeAttribute(
pos,