victory icon indicating copy to clipboard operation
victory copied to clipboard

clipWidth warning if I specify groupComponent as <g /> on an animated victory area

Open madmed88 opened this issue 5 years ago • 1 comments

Bugs and Questions

Checklist

  • [x] This is not a victory-native specific issue. (Issues that only appear in victory-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 lowercase clipwidth 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

madmed88 avatar Apr 10 '19 15:04 madmed88