feat: 폼 모달 자동 채번 기능 구현 및 임베디드 스크린 렌더링 최적화

UniversalFormModalComponent에 폼 초기화 시 채번 규칙을 가져와 적용하는 generateNumberingValues 구현
채번 생성 중복 호출 방지를 위한 useRef 로직 추가
데이터 업데이트 시 불필요한 리마운트 및 포커스 분실을 방지하기 위해 EmbeddedScreen 컴포넌트 key에서 formDataVersion 제거
This commit is contained in:
SeongHyun Kim
2026-01-04 17:41:07 +09:00
parent 7b773f57b4
commit 4ad58ba942
2 changed files with 109 additions and 77 deletions

View File

@@ -415,8 +415,10 @@ export const EmbeddedScreen = forwardRef<EmbeddedScreenHandle, EmbeddedScreenPro
maxWidth: `calc(100% - ${compPosition.x || 0}px)`,
};
// 🆕 formDataVersion을 key에서 제거하여 불필요한 remount 방지
// universal-form-modal 같은 컴포넌트가 채번 후 unmount되는 문제 해결
return (
<div key={`${component.id}-${formDataVersion}`} className="absolute" style={componentStyle}>
<div key={component.id} className="absolute" style={componentStyle}>
<DynamicComponentRenderer
component={component}
isInteractive={true}