Преглед на файлове

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 месеца
родител
ревизия
1c29bff998
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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]
     config: Var[Dict]
 
 
     # If true, the graph will resize when the window is resized.
     # 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.
     # Fired after the plot is redrawn.
     on_after_plot: EventHandler[_passthrough_signature]
     on_after_plot: EventHandler[_passthrough_signature]