fix: 분할 패널 컬럼 순서 변경 및 필터링 개선
문제: 1. ColumnVisibilityPanel에서 순서 변경 후 onColumnOrderChange가 호출되지 않음 2. 필터 입력 시 데이터가 제대로 필터링되지 않음 3. useAuth 훅 import 경로 오류 (@/hooks/use-auth → @/hooks/useAuth) 해결: 1. ColumnVisibilityPanel.handleApply()에 onColumnOrderChange 호출 추가 2. 필터 변경 감지 및 데이터 로드 로직 디버깅 로그 추가 3. useAuth import 경로 수정 테스트: - 거래처관리 화면에서 컬럼 순서 변경 → 실시간 반영 ✅ - 페이지 새로고침 → 순서 유지 (localStorage) ✅ - 필터 입력 → 필터 변경 감지 (추가 디버깅 필요)
This commit is contained in:
@@ -85,6 +85,15 @@ export const ColumnVisibilityPanel: React.FC<Props> = ({
|
||||
|
||||
const handleApply = () => {
|
||||
table?.onColumnVisibilityChange(localColumns);
|
||||
|
||||
// 컬럼 순서 변경 콜백 호출
|
||||
if (table?.onColumnOrderChange) {
|
||||
const newOrder = localColumns
|
||||
.map((col) => col.columnName)
|
||||
.filter((name) => name !== "__checkbox__");
|
||||
table.onColumnOrderChange(newOrder);
|
||||
}
|
||||
|
||||
onClose();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user