Skip to content

Commit 3e08396

Browse files
committed
Fix regression in cursor rendering caused by #2999
Correct the rendering regression caused by the change in #2999 and captured by Chromatic in https://www.chromatic.com/test?appId=5b4acf7c54c0490024d5980b&id=675360427f60e8728902e703
1 parent df0d978 commit 3e08396

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/orange-rockets-rest.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"victory-cursor-container": patch
3+
---
4+
5+
Fix regression in cursor rendering caused by #2999

packages/victory-cursor-container/src/victory-cursor-container.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const useVictoryCursorContainer = (
9595
return isObject(c.props) && c.props.padding !== undefined;
9696
})
9797
: props.children;
98-
return Helpers.getPadding(child?.props);
98+
return Helpers.getPadding(child?.props?.padding);
9999
}
100100
return Helpers.getPadding(props.padding);
101101
};

0 commit comments

Comments
 (0)