From c74ed18a16cafaed2938cb78233606d02d55d4c6 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Mon, 27 Oct 2025 14:15:48 +0700 Subject: [PATCH] refactor(FE-137): enable clearable option for select inputs in RecordingForm --- .../pages/production/recording/form/RecordingForm.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/pages/production/recording/form/RecordingForm.tsx b/src/components/pages/production/recording/form/RecordingForm.tsx index 5afeb021..f3b9e7c0 100644 --- a/src/components/pages/production/recording/form/RecordingForm.tsx +++ b/src/components/pages/production/recording/form/RecordingForm.tsx @@ -1146,6 +1146,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { }} isSearchable isDisabled={type === 'detail'} + isClearable={type !== 'detail'} startAdornment={ stock.product_warehouse_id ? getProductFlagBadgeAdornment(stock.product_warehouse_id) @@ -1343,6 +1344,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { wrapper: 'w-full min-w-32', }} isSearchable={false} + isClearable={type !== 'detail'} />