Browse Source

fix: only enable editing logseq portal when a single one is selected

Peng Xiao 3 years ago
parent
commit
d5bc3cba97
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tldraw/apps/tldraw-logseq/src/lib/shapes/LogseqPortalShape.tsx

+ 1 - 1
tldraw/apps/tldraw-logseq/src/lib/shapes/LogseqPortalShape.tsx

@@ -641,7 +641,7 @@ export class LogseqPortalShape extends TLBoxShape<LogseqPortalShapeProps> {
 
     this.persist = () => app.persist()
     const isMoving = useCameraMovingRef()
-    const isSelected = app.selectedIds.has(this.id)
+    const isSelected = app.selectedIds.has(this.id) && app.selectedIds.size === 1
 
     const isCreating = app.isIn('logseq-portal.creating') && !pageId
     const tlEventsEnabled =