Skip to content

Commit a702914

Browse files
committed
fix tests
1 parent 9fd897a commit a702914

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

packages/lib/src/spatial-navigation/components/virtualizedList/SpatialNavigationVirtualizedListWithScroll.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,15 @@ export const SpatialNavigationVirtualizedListWithScroll = typedMemo(
197197
[deviceTypeRef],
198198
);
199199

200-
const scrollTo = useCallback((index: number) => {
201-
if (idRef.current) {
202-
const newId = idRef.current.getNthVirtualNodeID(index);
203-
spatialNavigator.grabFocusDeferred(newId);
204-
}
205-
}, [idRef, spatialNavigator]);
200+
const scrollTo = useCallback(
201+
(index: number) => {
202+
if (idRef.current) {
203+
const newId = idRef.current.getNthVirtualNodeID(index);
204+
spatialNavigator.grabFocusDeferred(newId);
205+
}
206+
},
207+
[idRef, spatialNavigator],
208+
);
206209

207210
useImperativeHandle(
208211
ref,

0 commit comments

Comments
 (0)