A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
editor: fix outline list item collapsing the parent item Signed-off-by: 01zulfi <[email protected]>
01zulfic5a82bd77984
diff --git a/packages/editor/src/extensions/outline-list-item/outline-list-item.ts b/packages/editor/src/extensions/outline-list-item/outline-list-item.tsindex 4894a16dd..499fddb89 100644--- a/packages/editor/src/extensions/outline-list-item/outline-list-item.ts+++ b/packages/editor/src/extensions/outline-list-item/outline-list-item.ts@@ -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,