From abe7e51f37ba412ae77d629bc95a3673feb6f326 Mon Sep 17 00:00:00 2001 From: leedj312 Date: Thu, 28 Aug 2025 10:55:02 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A3=BC=EC=86=8C=20=EC=9E=90=EB=8F=99=20?= =?UTF-8?q?=EC=99=84=EC=84=B1=20input=20=EC=B4=88=EA=B8=B0=EA=B0=92=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/ui/search_input_address/index.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/common/business_components/src/ui/search_input_address/index.tsx b/packages/common/business_components/src/ui/search_input_address/index.tsx index fa88cd4b0..15c8f2f43 100644 --- a/packages/common/business_components/src/ui/search_input_address/index.tsx +++ b/packages/common/business_components/src/ui/search_input_address/index.tsx @@ -14,7 +14,7 @@ type thisProps = { * @returns setRtnData => 선택된 주소 데이터 반환 */ export default function SearchInputAddress({ - initValue = undefined, + initValue , setRtnData = () => {}, readonly=false }: thisProps) { @@ -24,6 +24,13 @@ export default function SearchInputAddress({ const [searchList, setSearchList] = useState([]); + useEffect(()=>{ + + if(initValue !== textValue && initValue !== undefined && initValue !== null && initValue !== ''){ + setTextValue(initValue) + } + + },[initValue]) const wrapperRef = useRef(null); const handleInputChange = useCallback( (e: React.ChangeEvent) => {