victory
victory copied to clipboard
clipWidth warning if I specify groupComponent as <g /> on an animated victory area
Bugs and Questions
Checklist
-
[x] This is not a
victory-native
specific issue. (Issues that only appear invictory-native
should be opened here) -
[x] I have read through the FAQ and Guides before asking a question
-
[x] I am using the latest version of Victory
-
[x] I've searched open issues to make sure I'm not opening a duplicate issue
The Problem
I get this warning on the console if I specify an animation duration and groupComponent g on a victory area.
React does not recognize the
clipWidth
prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercaseclipwidth
instead. If you accidentally passed it from a parent component, remove it from the DOM element.
I am using g as a groupComponent because I don't want it to be clipped.
Reproduction
https://codesandbox.io/s/3xw6wn4rwq