mirror of
https://github.com/duckietm/Nitro-Cool-UI.git
synced 2025-06-21 14:26:58 +00:00
:up Adding disable autoscroll
This commit is contained in:
parent
39dc37dda3
commit
ca873202c0
@ -1,5 +1,5 @@
|
||||
import { useVirtualizer } from '@tanstack/react-virtual';
|
||||
import { FC, Fragment, ReactElement, useEffect, useRef, useState } from 'react';
|
||||
import { FC, Fragment, ReactElement, useEffect, useRef } from 'react';
|
||||
import { Base } from './Base';
|
||||
import { UseMountEffect } from '../hooks';
|
||||
|
||||
@ -50,7 +50,9 @@ export const InfiniteScroll: FC<InfiniteScrollProps> = props =>
|
||||
|
||||
UseMountEffect(() =>
|
||||
{
|
||||
setTimeout(() => scrollToIndex(scrollIndex), 0)
|
||||
if (scrollToBottom) {
|
||||
setTimeout(() => scrollToIndex(scrollIndex), 0);
|
||||
}
|
||||
});
|
||||
|
||||
useEffect(() =>
|
||||
|
@ -190,6 +190,7 @@ export const ChooserWidgetView: FC<ChooserWidgetViewProps> = props =>
|
||||
</Flex>
|
||||
);
|
||||
} }
|
||||
scrollToBottom={ false }
|
||||
/>
|
||||
{ pickallFurni && (
|
||||
<Button
|
||||
|
Loading…
x
Reference in New Issue
Block a user