Warning: Failed prop type: Invalid prop events[0].eventKey
supplied to VictoryPie
#1923
Labels
Note: Good first issue 🤩
Good issue for new contributors
Status: Help Wanted 🔨
Extra attention is needed
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 am seeing the following warning when I am setting the eventKey value for events relating to VictoryPie:
What I am doing
I have created a circular input control with a number of segments.
I have attached the following events:
Because I couldn't find appropriate props information to handle the cursor change in the parent, I used the eventKey property of the events object to attach the event only to selectable segments. This works but gives the above warning. I have specified the eventKey property correctly, I believe, as a list of indexes for the event to be applied.
Reproduction
Please see the following sandbox: https://codesandbox.io/s/victory-pie-eventkey-warning-reproduction-x6s4l
The code sandbox runs correctly with correct behaviour for the controls but shows the warning in the console.
The text was updated successfully, but these errors were encountered: