소스 검색

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."""