mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 05:22:02 +00:00
refactor(FE): Add load-on-scroll for expedition vendor select
This commit is contained in:
@@ -156,6 +156,8 @@ const PurchaseOrderAcceptApprovalForm = ({
|
||||
setInputValue: setExpeditionsSelectInputValue,
|
||||
options: expeditionVendors,
|
||||
isLoadingOptions: isLoadingExpeditions,
|
||||
loadMore: loadMoreExpeditions,
|
||||
hasMore: hasMoreExpeditions,
|
||||
} = useSelect<Supplier>(SupplierApi.basePath, 'id', 'name', 'search', {
|
||||
category: 'BOP',
|
||||
});
|
||||
@@ -570,6 +572,8 @@ const PurchaseOrderAcceptApprovalForm = ({
|
||||
expeditionVendorChangeHandler(idx, val)
|
||||
}
|
||||
options={getExpeditionVendorOptions()}
|
||||
isLoading={isLoadingExpeditions}
|
||||
onMenuScrollToBottom={loadMoreExpeditions}
|
||||
isError={
|
||||
isRepeaterInputError(idx, 'expedition_vendor_id')
|
||||
.isError
|
||||
|
||||
Reference in New Issue
Block a user