Merge pull request #8869 from 01zulfi/editor/fix-outline-list-collapse

editor: fix outline list item collapsing the parent item
This commit is contained in:
Abdullah Atta
2025-10-28 13:53:33 +05:00
committed by GitHub

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,