Skip to content

Commit eb1bbef

Browse files
authoredDec 9, 2024
Fix regression in cursor rendering caused by #2999 (#3001)
1 parent df0d978 commit eb1bbef

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)