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
fix: backspacing empty 1st item deletes whole list (fixes streetwriters/notesnook#775)
thecodrr108998b91f24
diff --git a/packages/editor/src/extensions/list-item/commands.ts b/packages/editor/src/extensions/list-item/commands.tsindex b935dad81..7d6d1122d 100644--- a/packages/editor/src/extensions/list-item/commands.ts+++ b/packages/editor/src/extensions/list-item/commands.ts@@ -29,6 +29,7 @@ export function onBackspacePressed(if (isFirstOfType(type, editor.state)) {const parentList = getListFromListItem(type, editor.state);if (!parentList) return false;+ if (parentList.childCount > 1) return editor.commands.deleteNode(type);return editor.commands.deleteNode(parentList.type);}