From 67a412ba7a2eb292b0ce746315c28a7d359985eb Mon Sep 17 00:00:00 2001 From: "PC-20260115JRSN\\Administrator" Date: Sun, 4 Oct 2026 15:39:18 +0800 Subject: [PATCH] fixing the build error --- src/app/(main)/report/AsyncItemCodeAutocomplete.tsx | 1 - src/app/(main)/report/page.tsx | 1 - 2 files changed, 2 deletions(-) diff --git a/src/app/(main)/report/AsyncItemCodeAutocomplete.tsx b/src/app/(main)/report/AsyncItemCodeAutocomplete.tsx index 966b3a54..1c17e96d 100644 --- a/src/app/(main)/report/AsyncItemCodeAutocomplete.tsx +++ b/src/app/(main)/report/AsyncItemCodeAutocomplete.tsx @@ -192,7 +192,6 @@ const AsyncItemCodeAutocomplete: React.FC = ({ }, }} onInputChange={(_, next, reason) => { - if (reason === "blur") return; if (reason === "reset") { setInputValue(""); onInputValueChange?.(""); diff --git a/src/app/(main)/report/page.tsx b/src/app/(main)/report/page.tsx index 165392fc..cc254264 100644 --- a/src/app/(main)/report/page.tsx +++ b/src/app/(main)/report/page.tsx @@ -767,7 +767,6 @@ export default function ReportPage() { pendingItemCodeInputRef.current[field.name] = ""; return; } - if (reason === "blur") return; pendingItemCodeInputRef.current[field.name] = input; }} onChange={(event, newValue, reason) => {