fix: select-basic 컴포넌트가 CategorySelectComponent에 가로채지는 문제 해결
문제: - componentType이 'select-basic'이지만 webType이 'category'일 때 - DynamicComponentRenderer가 무조건 CategorySelectComponent 사용 - select-basic의 multiple 설정이 무시됨 원인: - 152줄에서 webType === 'category' 조건만 체크 - componentType을 확인하지 않아 select-basic도 가로챔 해결: - componentType !== 'select-basic' 조건 추가 - select-basic은 카테고리 조건을 건너뛰고 ComponentRegistry로 진행 - 다중선택 등 select-basic의 고급 기능 사용 가능 변경사항: - DynamicComponentRenderer.tsx 152줄 - 카테고리 조건에 componentType 체크 추가
This commit is contained in:
@@ -150,7 +150,8 @@ export const DynamicComponentRenderer: React.FC<DynamicComponentRendererProps> =
|
||||
const columnName = (component as any).columnName;
|
||||
|
||||
// 카테고리 셀렉트: webType이 "category"이고 tableName과 columnName이 있는 경우만
|
||||
if ((inputType === "category" || webType === "category") && tableName && columnName) {
|
||||
// ⚠️ 단, componentType이 "select-basic"인 경우는 제외 (다중선택 등 고급 기능 지원)
|
||||
if ((inputType === "category" || webType === "category") && tableName && columnName && componentType !== "select-basic") {
|
||||
try {
|
||||
const { CategorySelectComponent } = require("@/lib/registry/components/category-select/CategorySelectComponent");
|
||||
const fieldName = columnName || component.id;
|
||||
|
||||
Reference in New Issue
Block a user