1
0
Эх сурвалжийг харах

Set use resize handler default to true (#3424)

* init

* empty commit

* set true

* set true

* set true

---------

Co-authored-by: Hongyu Yao <hongyuyao@hongyus-mbp-3.lan>
HongyuHansonYao 11 сар өмнө
parent
commit
1c29bff998

+ 1 - 1
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]