feat: Enhance CategoryValueManagerTree with input focus management and modal improvements
- Added refs for input fields in the CategoryValueManagerTree component to manage focus transitions between the name and description inputs. - Updated the modal behavior to reset form data without closing the modal, allowing for continuous input. - Changed the button label from "취소" to "닫기" for better clarity in the modal interface. - Included debug logging for cascading roles in the SelectBasicComponent to assist with troubleshooting. These enhancements improve user experience and maintainability of the component.
This commit is contained in:
@@ -139,6 +139,22 @@ const SelectBasicComponent: React.FC<SelectBasicComponentProps> = ({
|
||||
const cascadingRole = config?.cascadingRole || componentConfig?.cascadingRole || "child";
|
||||
const cascadingParentField = config?.cascadingParentField || componentConfig?.cascadingParentField;
|
||||
|
||||
if (component.columnName === "data_type" || component.columnName === "unit") {
|
||||
console.log("🔥🔥🔥 [PLC 캐스케이딩 디버그]", {
|
||||
columnName: component.columnName,
|
||||
categoryRelationCode,
|
||||
cascadingRole,
|
||||
cascadingParentField,
|
||||
configKeys: config ? Object.keys(config) : "null",
|
||||
componentConfigKeys: componentConfig ? Object.keys(componentConfig) : "null",
|
||||
configCategoryRelationCode: config?.categoryRelationCode,
|
||||
componentConfigCategoryRelationCode: componentConfig?.categoryRelationCode,
|
||||
webType,
|
||||
formDataKeys: formData ? Object.keys(formData) : "null",
|
||||
parentValue: cascadingParentField && formData ? formData[cascadingParentField] : "N/A",
|
||||
});
|
||||
}
|
||||
|
||||
// 🆕 계층구조 역할 설정 (대분류/중분류/소분류)
|
||||
// 1순위: 동적으로 조회된 값 (테이블 타입관리에서 설정)
|
||||
// 2순위: config에서 전달된 값
|
||||
|
||||
Reference in New Issue
Block a user