mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 11:47:54 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user