refactor(FE-137): enable clearable option for select inputs in RecordingForm

This commit is contained in:
rstubryan
2025-10-27 14:15:48 +07:00
parent 15e6372c30
commit c74ed18a16
@@ -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'}
/>
</td>
<td>