mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 18:09:58 +08:00
fix(editor): ref on click slots should not be global (#9830)
fix AF-2129
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user