From 21da47e29a380347e18fa4aae28951bd1f81d492 Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Tue, 11 Feb 2020 13:20:58 -0500 Subject: [PATCH] Merge pull request #754 from plotly/graph-warning full propTypes for ControlledPlotlyGraph to avoid weird React warning --- packages/dash-core-components/src/components/Graph.react.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dash-core-components/src/components/Graph.react.js b/packages/dash-core-components/src/components/Graph.react.js index 35565c95ce..eb8031413b 100644 --- a/packages/dash-core-components/src/components/Graph.react.js +++ b/packages/dash-core-components/src/components/Graph.react.js @@ -115,8 +115,6 @@ const ControlledPlotlyGraph = memo(props => { ); }); -ControlledPlotlyGraph.propTypes = PropTypes.any; - PlotlyGraph.propTypes = { ...privatePropTypes, @@ -515,6 +513,8 @@ PlotlyGraph.propTypes = { }), }; +ControlledPlotlyGraph.propTypes = PlotlyGraph.propTypes; + PlotlyGraph.defaultProps = { ...privateDefaultProps,