Pārlūkot izejas kodu

fix: a merge issue

Peng Xiao 2 gadi atpakaļ
vecāks
revīzija
fe9e7e9b60

+ 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 ?? ''}`}>