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 isSearchable
isDisabled={type === 'detail'} isDisabled={type === 'detail'}
isClearable={type !== 'detail'}
startAdornment={ startAdornment={
stock.product_warehouse_id stock.product_warehouse_id
? getProductFlagBadgeAdornment(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', wrapper: 'w-full min-w-32',
}} }}
isSearchable={false} isSearchable={false}
isClearable={type !== 'detail'}
/> />
</td> </td>
<td> <td>