Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: fix collapsing a callout collapses all parent callouts

Ammar Ahmedc5ec5f127d69
diff --git a/packages/editor/src/extensions/callout/callout.ts b/packages/editor/src/extensions/callout/callout.ts
index 903d5ec5d..536377274 100644
--- a/packages/editor/src/extensions/callout/callout.ts
+++ b/packages/editor/src/extensions/callout/callout.ts
@@ -263,6 +263,7 @@ export const Callout = Node.create({
if (xStart && xEnd && yStart && yEnd) {
e.preventDefault();
+ e.stopImmediatePropagation();
editor.commands.command(({ tr }) => {
tr.setNodeAttribute(