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

isZRenderElement bug修正 #2205

Closed
justQing00 opened this issue Nov 25, 2015 · 0 comments
Closed

isZRenderElement bug修正 #2205

justQing00 opened this issue Nov 25, 2015 · 0 comments

Comments

@justQing00
Copy link

在 echarts-all.js中 链接:https://github.com/ecomfe/echarts/blob/master/build/source/echarts-all.js
在这个情况,
点击echarts的中国地图,通过弹框将百度地图显示在echarts的中国地图上,会出现这个bug

qq20151125-0 2x

所在函数: isZRenderElement = function (event)
修正措施,判断className 是否为字符串即可,
备注:
1、 修正点击切换到弹出框的bug,那时他的target是'path'
2、path的target.className 输出为SVGAnimatedString {}
需要增加的代码如下:
if (Object.prototype.toString.call(target.className) != "[object String]") {
return false;
}

@pissang pissang closed this as completed Apr 4, 2017
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

2 participants