You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/07/22 05:36:53 UTC

[echarts] branch pissang-patch-1 created (now e017a3e)

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

shenyi pushed a change to branch pissang-patch-1
in repository https://gitbox.apache.org/repos/asf/echarts.git.


      at e017a3e  Update TooltipView.ts

This branch includes the following new commits:

     new e017a3e  Update TooltipView.ts

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


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


[echarts] 01/01: Update TooltipView.ts

Posted by sh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch pissang-patch-1
in repository https://gitbox.apache.org/repos/asf/echarts.git

commit e017a3eff2469af047c392531f2e4872190158dd
Author: Yi Shen <bm...@gmail.com>
AuthorDate: Thu Jul 22 13:36:21 2021 +0800

    Update TooltipView.ts
---
 src/component/tooltip/TooltipView.ts | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/component/tooltip/TooltipView.ts b/src/component/tooltip/TooltipView.ts
index e18a656..c2688f6 100644
--- a/src/component/tooltip/TooltipView.ts
+++ b/src/component/tooltip/TooltipView.ts
@@ -969,8 +969,10 @@ class TooltipView extends ComponentView {
 
                 // check is cbParams data value changed
                 lastCbParamsList && zrUtil.each(lastItem.seriesDataIndices, (idxItem) => {
-                    const cbParams = cbParamsList[idxItem.seriesIndex];
-                    if (cbParams && lastCbParamsList[idxItem.seriesIndex].data !== cbParams.data) {
+                    const seriesIdx = idxItem.seriesIndex;
+                    const cbParams = cbParamsList[seriesIdx];
+                    const lastCbParams = lastCbParamsList[seriesIdx];
+                    if (cbParams && lastCbParams && lastCbParams.data !== cbParams.data) {
                         contentNotChanged = false;
                     }
                 });

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