File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
components/dash-core-components Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -159,8 +159,10 @@ class PlotlyGraph extends Component {
159
159
return Plotly . animate ( gd , figure , animation_options ) ;
160
160
}
161
161
162
- const configClone = this . getConfig ( config , responsive ) ;
163
162
const layoutClone = this . getLayout ( figure . layout , responsive ) ;
163
+ const configClone = this . getConfig ( config , responsive ) ;
164
+ // add typesetMath | not exposed to the dash API
165
+ configClone . typesetMath = this . props . mathjax ;
164
166
165
167
gd . classList . add ( 'dash-graph--pending' ) ;
166
168
@@ -170,6 +172,9 @@ class PlotlyGraph extends Component {
170
172
frames : figure . frames ,
171
173
config : configClone ,
172
174
} ) . then ( ( ) => {
175
+ // clear typesetMath
176
+ configClone . typesetMath = undefined ;
177
+
173
178
const gd = this . gd . current ;
174
179
175
180
// double-check gd hasn't been unmounted
Original file line number Diff line number Diff line change @@ -211,6 +211,7 @@ def check_graph_config_shape(dash_dcc):
211
211
"globalTransforms" ,
212
212
"notifyOnLogging" ,
213
213
"role" ,
214
+ "typesetMath" ,
214
215
]
215
216
216
217
def crawl (schema , props ):
You can’t perform that action at this time.
0 commit comments