fix(editor): ref on click slots should not be global (#9830)

fix AF-2129
This commit is contained in:
pengx17
2025-01-22 05:20:55 +00:00
parent 720a596559
commit 4c665594d6
15 changed files with 47 additions and 20 deletions
@@ -106,6 +106,9 @@ function DocPeekPreviewEditor({
disposableGroup.add(
// todo(@pengx17): seems not working
refNodeSlots.docLinkClicked.on(options => {
if (options.host !== editorContainer.host) {
return;
}
peekView
.open({
docRef: { docId: options.pageId },