Browse Source

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 tháng trước cách đây
mục cha
commit
1c29bff998
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      reflex/components/plotly/plotly.py

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