diff --git a/reflex/components/plotly/plotly.py b/reflex/components/plotly/plotly.py index 762172ed6..ed4b1a3fc 100644 --- a/reflex/components/plotly/plotly.py +++ b/reflex/components/plotly/plotly.py @@ -109,7 +109,7 @@ class Plotly(PlotlyLib): config: Var[Dict] # If true, the graph will resize when the window is resized. - use_resize_handler: Var[bool] + use_resize_handler: Var[bool] = Var.create_safe(True) # Fired after the plot is redrawn. on_after_plot: EventHandler[_passthrough_signature]