Undefined containerComponent results in TypeError #2848
Labels
Issue: Accepted
The submitted issue has been confirmed by the Victory core team
Type: Bug 🐛
Oh no! A bug or unintentional behavior
Is there an existing issue for this?
Mentioned here: #2748 (comment)
Code of Conduct
Victory version
37.0.1
Code Sandbox link
https://codesandbox.io/p/sandbox/victory-starter-forked-cyh3wf
Bug report
We have a custom container on a chart that we want to use in some views, but not all. Setting
containerComponent
toundefined
however crashes the application (TypeError) as Victory tries to readcontainerComponent.props
.Expected behavior
We expected
containerComponent={undefined}
to behave as if no containerComponent was set.We thought this:
Should work as this:
The text was updated successfully, but these errors were encountered: