Skip to content

Commit

Permalink
Fix regression in cursor rendering caused by #2999 (#3001)
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonrobot authored Dec 9, 2024
1 parent df0d978 commit eb1bbef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/orange-rockets-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"victory-cursor-container": patch
---

Fix regression in cursor rendering caused by #2999
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit eb1bbef

Please sign in to comment.