From 0bedd8bc0b97a0ecc704597b48f9560d2a5f0c95 Mon Sep 17 00:00:00 2001 From: SeongHyun Kim Date: Tue, 18 Nov 2025 18:40:25 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Dialog=20=EB=AA=A8=EB=8B=AC=20=EB=82=B4?= =?UTF-8?q?=EB=B6=80=20input=20=ED=95=84=EB=93=9C=20=ED=85=8D=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EC=9E=85=EB=A0=A5=20=EB=B6=88=EA=B0=80=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ResizableDialog 콘텐츠 영역에 pointer-events 및 z-index 설정 추가 - TextInputComponent를 제어 컴포넌트에서 비제어 컴포넌트로 변경 (value → defaultValue) - ItemSelectionModal 및 TextInputComponent 디버그 로그 제거 수정 파일: - frontend/components/ui/resizable-dialog.tsx - frontend/lib/registry/components/text-input/TextInputComponent.tsx - frontend/lib/registry/components/modal-repeater-table/ItemSelectionModal.tsx --- .../order/OrderRegistrationModal.tsx | 46 +++++++++++-------- frontend/components/ui/resizable-dialog.tsx | 12 ++++- .../ItemSelectionModal.tsx | 9 ---- .../text-input/TextInputComponent.tsx | 9 +--- 4 files changed, 37 insertions(+), 39 deletions(-) diff --git a/frontend/components/order/OrderRegistrationModal.tsx b/frontend/components/order/OrderRegistrationModal.tsx index adfee1b2..bd780038 100644 --- a/frontend/components/order/OrderRegistrationModal.tsx +++ b/frontend/components/order/OrderRegistrationModal.tsx @@ -11,7 +11,6 @@ import { } from "@/components/ui/dialog"; import { Button } from "@/components/ui/button"; import { Label } from "@/components/ui/label"; -import { Input } from "@/components/ui/input"; import { Select, SelectContent, @@ -19,7 +18,6 @@ import { SelectTrigger, SelectValue, } from "@/components/ui/select"; -import { Textarea } from "@/components/ui/textarea"; import { OrderCustomerSearch } from "./OrderCustomerSearch"; import { OrderItemRepeaterTable } from "./OrderItemRepeaterTable"; import { toast } from "sonner"; @@ -260,14 +258,15 @@ export function OrderRegistrationModal({ - setFormData({ ...formData, contactPerson: e.target.value }) } - className="h-8 text-xs sm:h-10 sm:text-sm" + className="flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:h-10 sm:text-sm" /> @@ -276,14 +275,15 @@ export function OrderRegistrationModal({ - setFormData({ ...formData, deliveryDestination: e.target.value }) } - className="h-8 text-xs sm:h-10 sm:text-sm" + className="flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:h-10 sm:text-sm" /> @@ -292,14 +292,15 @@ export function OrderRegistrationModal({ - setFormData({ ...formData, deliveryAddress: e.target.value }) } - className="h-8 text-xs sm:h-10 sm:text-sm" + className="flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:h-10 sm:text-sm" /> @@ -310,9 +311,10 @@ export function OrderRegistrationModal({
-
@@ -322,9 +324,10 @@ export function OrderRegistrationModal({
-
@@ -436,14 +439,15 @@ export function OrderRegistrationModal({ - setFormData({ ...formData, portOfLoading: e.target.value }) } - className="h-8 text-xs sm:h-10 sm:text-sm" + className="flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:h-10 sm:text-sm" /> @@ -452,14 +456,15 @@ export function OrderRegistrationModal({ - setFormData({ ...formData, portOfDischarge: e.target.value }) } - className="h-8 text-xs sm:h-10 sm:text-sm" + className="flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:h-10 sm:text-sm" /> @@ -468,14 +473,15 @@ export function OrderRegistrationModal({ - setFormData({ ...formData, hsCode: e.target.value }) } - className="h-8 text-xs sm:h-10 sm:text-sm" + className="flex h-8 w-full rounded-md border border-input bg-background px-3 py-2 text-xs ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:h-10 sm:text-sm" /> @@ -487,14 +493,14 @@ export function OrderRegistrationModal({ -