Browse Source

fix: a merge issue

Peng Xiao 2 years ago
parent
commit
fe9e7e9b60
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tldraw/packages/react/src/components/Canvas/Canvas.tsx

+ 1 - 0
tldraw/packages/react/src/components/Canvas/Canvas.tsx

@@ -110,6 +110,7 @@ export const Canvas = observer(function Renderer<S extends TLReactShape>({
   const selectedShapesSet = React.useMemo(() => new Set(selectedShapes || []), [selectedShapes])
   const erasingShapesSet = React.useMemo(() => new Set(erasingShapes || []), [erasingShapes])
   const singleSelectedShape = selectedShapes?.length === 1 ? selectedShapes[0] : undefined
+  const selectedOrHooveredShape = hoveredShape || singleSelectedShape
 
   return (
     <div ref={rContainer} className={`tl-container ${className ?? ''}`}>