fix(subscription): CLAUDE.md districts shape + dragLeave 정확도

preferred_districts 문서 형태를 백엔드 실제 구조(tier-keyed Dict[str, List[str]])로 수정.
onDragLeave가 자식 요소로 커서 이동 시 flicker 발생하던 문제 수정(relatedTarget 체크).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-28 20:31:24 +09:00
parent c87e764063
commit 1c331f209a
2 changed files with 5 additions and 2 deletions

View File

@@ -62,7 +62,10 @@ export default function DistrictTierEditor({ value, onChange }) {
e.dataTransfer.dropEffect = "move";
if (dragOver !== key) setDragOver(key);
};
const onDragLeave = () => setDragOver(null);
const onDragLeave = (e) => {
if (e.currentTarget.contains(e.relatedTarget)) return;
setDragOver(null);
};
const onDrop = (e, targetTier /* null = 미할당 */) => {
e.preventDefault();
const district = e.dataTransfer.getData("text/district");