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 48c3bf2 commit 4636338Copy full SHA for 4636338
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