mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +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);
|
const resolvedPos = editor.state.doc.resolve(pos);
|
||||||
if (isClickWithinBounds(e, resolvedPos, "left")) {
|
if (isClickWithinBounds(e, resolvedPos, "left")) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
e.stopImmediatePropagation();
|
||||||
editor.commands.command(({ tr }) => {
|
editor.commands.command(({ tr }) => {
|
||||||
tr.setNodeAttribute(
|
tr.setNodeAttribute(
|
||||||
pos,
|
pos,
|
||||||
|
|||||||
Reference in New Issue
Block a user