We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f780e8f commit 2e41c97Copy full SHA for 2e41c97
src/components/sortableList/index.tsx
@@ -47,7 +47,10 @@ const SortableList = <ItemT extends SortableListItemProps>(props: SortableListPr
47
const onItemLayout = useCallback((event: LayoutChangeEvent) => {
48
// Round height for Android
49
const newHeight = Math.round(event.nativeEvent.layout.height);
50
- itemHeight.value = newHeight;
+ // Check validity for tests
51
+ if (newHeight) {
52
+ itemHeight.value = newHeight;
53
+ }
54
}, []);
55
56
const context = useMemo(() => {
0 commit comments