Browse Source

add js-plotly-plot class to plotly element (fixes #2519)

Falko Schindler 1 năm trước cách đây
mục cha
commit
2053a0cfbd
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      nicegui/elements/plotly.py

+ 1 - 0
nicegui/elements/plotly.py

@@ -36,6 +36,7 @@ class Plotly(Element, component='plotly.vue', libraries=['lib/plotly/plotly.min.
 
 
         self.figure = figure
         self.figure = figure
         self.update()
         self.update()
+        self._classes.append('js-plotly-plot')
 
 
     def update_figure(self, figure: Union[Dict, go.Figure]):
     def update_figure(self, figure: Union[Dict, go.Figure]):
         """Overrides figure instance of this Plotly chart and updates chart on client side."""
         """Overrides figure instance of this Plotly chart and updates chart on client side."""