Setting title: {useHTML: true, text: null} throws an error #7316
Labels
Comments
Hi @sweetro Thank you for reporting the issue! |
Resolved through 7ed92fb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behaviour
Based on the documentation, should not show title when
{title: {text: null}}
(assume this will be the case regardless of other parameters).Actual behaviour
Errors on
{title: {text: null, useHTML: true}}
Doing a bit of digging it looks like this occurs because the
svgElement
that is set fortitle
whenuseHTML
istrue
has atextStr
element that is set tonull
whereas whenuseHTML
isfalse
orundefined
thetextStr
element isundefined
.getBBox
checks iftextStr
isundefined
, but doesn't checknull
so errors on thenull.toString
.Live demo with steps to reproduce
http://jsfiddle.net/8kqrqkb4/1/
Affected browser(s)
Probably All (Tested Chrome and FF) Highcharts v 6.0.2
The text was updated successfully, but these errors were encountered: