From c5700c62ccfab36ba2b31f66e2dab5f63bd9ab8a Mon Sep 17 00:00:00 2001 From: ysCha Date: Thu, 4 Sep 2025 17:06:53 +0900 Subject: [PATCH] FlowLine contains an input of type text with both value and defaultValue props. Input elements must be either controlled or uncontrolled --- .../floor-plan/modal/movement/type/FlowLine.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/floor-plan/modal/movement/type/FlowLine.jsx b/src/components/floor-plan/modal/movement/type/FlowLine.jsx index 337ec50b..7c400fd4 100644 --- a/src/components/floor-plan/modal/movement/type/FlowLine.jsx +++ b/src/components/floor-plan/modal/movement/type/FlowLine.jsx @@ -12,11 +12,12 @@ export default function FlowLine({ FLOW_LINE_REF }) { const { getMessage } = useMessage() const [type, setType] = useState(FLOW_LINE_TYPE.DOWN_LEFT) const [filledInput, setFilledInput] = useState('') + const [pointerInput, setPointerInput] = useState('100') const currentObject = useRecoilValue(currentObjectState) const handleFocus = () => { if (currentObject === null) { - FLOW_LINE_REF.POINTER_INPUT_REF.current.value = '' - FLOW_LINE_REF.FILLED_INPUT_REF.current.value = '' + setPointerInput('') + setFilledInput('') FLOW_LINE_REF.FILLED_INPUT_REF.current.blur() } } @@ -35,7 +36,7 @@ export default function FlowLine({ FLOW_LINE_REF }) {
{getMessage('modal.movement.flow.line.position')}
- +
@@ -71,7 +72,6 @@ export default function FlowLine({ FLOW_LINE_REF }) {