浏览代码

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

Falko Schindler 1 年之前
父节点
当前提交
2053a0cfbd
共有 1 个文件被更改,包括 1 次插入0 次删除
  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.update()
+        self._classes.append('js-plotly-plot')
 
     def update_figure(self, figure: Union[Dict, go.Figure]):
         """Overrides figure instance of this Plotly chart and updates chart on client side."""