This is an automated email from the ASF dual-hosted git repository.

wangzx pushed a commit to branch fix-12841
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git

commit e73aab07ad89f0be04f6cbcd4dae3e134c2ff8bf
Author: Zhongxiang.Wang <y...@all-my-life.cn>
AuthorDate: Mon Jun 22 14:56:34 2020 +0800

    fix(title): incorrect redirect when sublink is clicked.
    
    fixed the bug #12841, which was brought by #12380.
---
 src/component/title.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/component/title.js b/src/component/title.js
index 94a30a2..e1a8da7 100644
--- a/src/component/title.js
+++ b/src/component/title.js
@@ -149,7 +149,7 @@ echarts.extendComponentView({
         }
         if (sublink) {
             subTextEl.on('click', function () {
-                windowOpen(link, '_' + titleModel.get('subtarget'));
+                windowOpen(sublink, '_' + titleModel.get('subtarget'));
             });
         }
 
@@ -233,4 +233,4 @@ echarts.extendComponentView({
 
         group.add(rect);
     }
-});
\ No newline at end of file
+});


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to