Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highcharts 3.0.1 issue with jQuery 2.0.1/1.10.0 #1890

Closed
showenx opened this issue May 28, 2013 · 3 comments
Closed

Highcharts 3.0.1 issue with jQuery 2.0.1/1.10.0 #1890

showenx opened this issue May 28, 2013 · 3 comments

Comments

@showenx
Copy link

showenx commented May 28, 2013

Try this one: http://jsfiddle.net/vCDu8/

When clicking on the series, some error are loged in console, not sure it's issue with jQuery or highcharts

TypeError: invalid 'in' operand style

@kenaniah
Copy link

This line is thrown due to the $el.anime(params, options); call on line 1408 of highcharts.src.js (v3.0.1). el points to an SVGElement instance, but those types of objects do not have the style property defined in the SVG spec, the style property ends up being a string rather than an instance of CSSStyleDeclaration in the DOM. When passed to the $.animate() function in jQuery, jQuery attempts to iterate the properties of the CSSStyleDeclartion instance that (normally) makes up the style property of an element.

Because the style property on the highcart tooltip (<g class="highcharts-tooltip"> is the element in question) happens to be a string, JavaScript throws the TypeError with a message of something to the effect of:

Cannot use 'in' operator to search for '<css property name>' in <contents of the style property string>

The net result of this issue is that the tooltip stays visible and a JavaScript error is thrown.

@kenaniah
Copy link

One workaround would be to replace the contents of fadeOut() on line 2850 with this:

fadeOut: function(duration){
    this.hide();
}

@TorsteinHonsi
Copy link
Collaborator

Duplicate of #1881

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants