You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2021/10/09 15:12:59 UTC

[echarts] 01/01: Revert "Feat(line): event on whole line"

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

susiwen8 pushed a commit to branch revert-15535-line-click
in repository https://gitbox.apache.org/repos/asf/echarts.git

commit 27b239820588ab95a4eccbd14e72ff21c6c8893d
Author: susiwen8 <su...@gmail.com>
AuthorDate: Sat Oct 9 23:12:46 2021 +0800

    Revert "Feat(line): event on whole line"
---
 src/core/echarts.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/echarts.ts b/src/core/echarts.ts
index 6e802ca..8a61c98 100644
--- a/src/core/echarts.ts
+++ b/src/core/echarts.ts
@@ -1007,7 +1007,7 @@ class ECharts extends Eventful<ECEventDefinition> {
                 else {
                     el && findEventDispatcher(el, (parent) => {
                         const ecData = getECData(parent);
-                        if (ecData && (ecData.dataIndex != null || ecData.seriesIndex != null)) {
+                        if (ecData && ecData.dataIndex != null) {
                             const dataModel = ecData.dataModel || ecModel.getSeriesByIndex(ecData.seriesIndex);
                             params = (
                                 dataModel && dataModel.getDataParams(ecData.dataIndex, ecData.dataType) || {}

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