diff options
| author | 0-Zz-ang <s1998319@gmail.com> | 2025-08-08 17:15:22 +0900 |
|---|---|---|
| committer | 0-Zz-ang <s1998319@gmail.com> | 2025-08-08 17:15:22 +0900 |
| commit | 7cdedf2cf8e807eeea9134888dc9bd1586978ea8 (patch) | |
| tree | e6b2eefda385ecbb6ae17494b9e05ccd8985e24d /lib/docu-list-rule/combo-box-settings/table/combo-box-options-add-dialog.tsx | |
| parent | a6335760fc8e56d192f002eb0c3f26d1210d07a2 (diff) | |
(박서영)combo box 옵션 및 number type config Add에러 수정
Diffstat (limited to 'lib/docu-list-rule/combo-box-settings/table/combo-box-options-add-dialog.tsx')
| -rw-r--r-- | lib/docu-list-rule/combo-box-settings/table/combo-box-options-add-dialog.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/docu-list-rule/combo-box-settings/table/combo-box-options-add-dialog.tsx b/lib/docu-list-rule/combo-box-settings/table/combo-box-options-add-dialog.tsx index a0535b43..9a3f8a86 100644 --- a/lib/docu-list-rule/combo-box-settings/table/combo-box-options-add-dialog.tsx +++ b/lib/docu-list-rule/combo-box-settings/table/combo-box-options-add-dialog.tsx @@ -59,6 +59,7 @@ export function ComboBoxOptionsAddDialog({ codeGroupId, onSuccess }: ComboBoxOpt const handleCodeChange = (value: string) => { form.setValue("code", value) form.setValue("description", value) // 코드값을 description에도 자동 설정 + form.trigger() // 폼 유효성 검사 트리거 } const handleSubmit = (data: CreateOptionSchema) => { @@ -155,7 +156,10 @@ export function ComboBoxOptionsAddDialog({ codeGroupId, onSuccess }: ComboBoxOpt <Button type="button" variant="outline" onClick={handleCancel}> 취소 </Button> - <Button type="submit" disabled={isPending || !form.formState.isValid}> + <Button + type="submit" + disabled={isPending || !form.formState.isValid || !form.watch("code")} + > 추가 </Button> </DialogFooter> |
