Skip to content

Commit 609d5ca

Browse files
committed
unified hoverlabel: do not process MathJax in hover since it's not supported
without this fix, in mock "ohlc_first", the library tries to render MathJax and the result is broken
1 parent 4bf9052 commit 609d5ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/legend/draw.js

+1
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ function setupTraceToggle(g, gd) {
494494
}
495495

496496
function textLayout(s, g, gd, opts) {
497+
if(!opts._main) s.attr('data-notex', true); // do not process MathJax if not main
497498
svgTextUtils.convertToTspans(s, gd, function() {
498499
computeTextDimensions(g, gd, opts);
499500
});

0 commit comments

Comments
 (0)