diff --git a/.changeset/orange-rockets-rest.md b/.changeset/orange-rockets-rest.md new file mode 100644 index 000000000..888a59232 --- /dev/null +++ b/.changeset/orange-rockets-rest.md @@ -0,0 +1,5 @@ +--- +"victory-cursor-container": patch +--- + +Fix regression in cursor rendering caused by #2999 diff --git a/packages/victory-cursor-container/src/victory-cursor-container.tsx b/packages/victory-cursor-container/src/victory-cursor-container.tsx index 4f69ac75f..c897ca071 100644 --- a/packages/victory-cursor-container/src/victory-cursor-container.tsx +++ b/packages/victory-cursor-container/src/victory-cursor-container.tsx @@ -95,7 +95,7 @@ export const useVictoryCursorContainer = ( return isObject(c.props) && c.props.padding !== undefined; }) : props.children; - return Helpers.getPadding(child?.props); + return Helpers.getPadding(child?.props?.padding); } return Helpers.getPadding(props.padding); };