@antscorp/antsomi-ui 1.3.5-beta.864 → 1.3.5-beta.865
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -54,7 +54,11 @@ export function MatchesAny(props) {
|
|
|
54
54
|
threshold: 0,
|
|
55
55
|
initialIsIntersecting: false,
|
|
56
56
|
onChange(isIntersecting) {
|
|
57
|
-
if
|
|
57
|
+
// Only load more items if the search input is empty and not in external search mode.
|
|
58
|
+
// This prevents loading more items when the user is searching for something specific.
|
|
59
|
+
const isNoNeedToLoadMore = !!searchValue && !isExternalSearch;
|
|
60
|
+
if (isIntersecting && !isNoNeedToLoadMore) {
|
|
61
|
+
// Load more items when the user reaches the end of the list.
|
|
58
62
|
onLoadMore();
|
|
59
63
|
}
|
|
60
64
|
},
|
|
@@ -379,5 +383,5 @@ export function MatchesAnySelect(props) {
|
|
|
379
383
|
...dropdownStyle,
|
|
380
384
|
display: 'none',
|
|
381
385
|
padding: 0,
|
|
382
|
-
}, loading: loading, status: props.status || (error ? 'error' : undefined), ...restProps }), !!error && _jsx(Text, { className:
|
|
386
|
+
}, loading: loading, status: props.status || (error ? 'error' : undefined), ...restProps }), !!error && (_jsx(Text, { className: "ant-form-item-explain-error", type: "danger", children: error }))] }) }));
|
|
383
387
|
}
|