You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2019/05/30 07:07:16 UTC

[incubator-echarts] 01/01: fix: update pointer when type is none, #fix 10570

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

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

commit 8a8b64b64a12a3b942c5b2d1c70e991926500f55
Author: Ovilia <zw...@gmail.com>
AuthorDate: Thu May 30 15:06:07 2019 +0800

    fix: update pointer when type is none, #fix 10570
---
 src/component/axisPointer/BaseAxisPointer.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/component/axisPointer/BaseAxisPointer.js b/src/component/axisPointer/BaseAxisPointer.js
index 3d564aa..6b206bb 100644
--- a/src/component/axisPointer/BaseAxisPointer.js
+++ b/src/component/axisPointer/BaseAxisPointer.js
@@ -238,7 +238,7 @@ BaseAxisPointer.prototype = {
      */
     updatePointerEl: function (group, elOption, updateProps) {
         var pointerEl = inner(group).pointerEl;
-        if (pointerEl) {
+        if (pointerEl && elOption.pointer) {
             pointerEl.setStyle(elOption.pointer.style);
             updateProps(pointerEl, {shape: elOption.pointer.shape});
         }


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