Skip to content

Commit 19fa775

Browse files
committed
fix: handle click outside if the target class is focused
1 parent a005fea commit 19fa775

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/superdoc/src/components/CommentsLayer/CommentDialog.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ const handleClickOutside = (e) => {
133133
'track-delete-dec',
134134
'track-format',
135135
'track-format-dec',
136+
'ProseMirror',
137+
'ProseMirror-focused',
136138
];
137139
138140
if (excludedClasses.some((className) => e.target.classList.contains(className))) return;

0 commit comments

Comments
 (0)