Set offset
This commit is contained in:
parent
ae14076ceb
commit
1a58d4ab80
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ const SingleAutocompleteSelectFieldContent: React.FC<
|
|||
const scrollPosition = useElementScroll(anchor);
|
||||
const [calledForMore, setCalledForMore] = React.useState(false);
|
||||
|
||||
const scrolledToBottom = isScrolledToBottom(anchor, scrollPosition, 50);
|
||||
const scrolledToBottom = isScrolledToBottom(anchor, scrollPosition, offset);
|
||||
|
||||
React.useEffect(() => {
|
||||
if (!calledForMore && onFetchMore && scrolledToBottom) {
|
||||
|
|
Loading…
Reference in a new issue