File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -454,11 +454,7 @@ class List<T = any> extends React.Component<ListProps<T>, ListState<T>> {
454
454
}
455
455
} ;
456
456
457
- public scrollTo ( scrollTop : number ) : void ;
458
-
459
- public scrollTo ( config : ScrollConfig ) : void ;
460
-
461
- public scrollTo ( arg0 : any ) {
457
+ public scrollTo = ( arg0 : number | ScrollConfig ) => {
462
458
// Number top
463
459
if ( typeof arg0 === 'object' ) {
464
460
const { isVirtual } = this . state ;
@@ -596,7 +592,7 @@ class List<T = any> extends React.Component<ListProps<T>, ListState<T>> {
596
592
} else {
597
593
this . listRef . current . scrollTop = arg0 ;
598
594
}
599
- }
595
+ } ;
600
596
601
597
public internalScrollTo ( relativeScroll : RelativeScroll ) : void {
602
598
const { itemIndex : compareItemIndex , relativeTop : compareItemRelativeTop } = relativeScroll ;
You can’t perform that action at this time.
0 commit comments