diff --git a/src/components/common/draggable/WithDraggable.jsx b/src/components/common/draggable/WithDraggable.jsx index 99123e49..fe74088c 100644 --- a/src/components/common/draggable/WithDraggable.jsx +++ b/src/components/common/draggable/WithDraggable.jsx @@ -25,6 +25,7 @@ export default function WithDraggable({ isShow, children, pos = { x: 0, y: 0 }, position={{ x: position.x, y: position.y }} onDrag={(e, data) => handleOnDrag(e, data)} handle= ''//{handle === '' ? '.modal-handle' : handle} //전체 handle + cancel="input, button, select, textarea, [contenteditable]" >
{children} diff --git a/src/hooks/usePolygon.js b/src/hooks/usePolygon.js index f6dbf3ce..a36b0982 100644 --- a/src/hooks/usePolygon.js +++ b/src/hooks/usePolygon.js @@ -846,8 +846,8 @@ export const usePolygon = () => { if (checkLineOverlap(innerLine, polygonLine)) { // innerLine의 type을 polygonLine의 type으로 변경 if (polygonLine.attributes?.type && innerLine.attributes) { - polygonLine.need = false - innerLine.attributes = polygonLine.attributes + // polygonLine.need = false + innerLine.attributes = { ...polygonLine.attributes } innerLine.direction = polygonLine.direction innerLine.attributes.isStart = true }