Skip to content

Commit e754054

Browse files
moayuisuda林舸
andauthored
fix: tooltip marker blocked elements select (#6695)
Co-authored-by: 林舸 <anhaohui.ahh@antgroup.com>
1 parent 4a53c4f commit e754054

File tree

10 files changed

+34
-0
lines changed

10 files changed

+34
-0
lines changed

__tests__/integration/snapshots/interaction/alphabet-interval-active-marker-type/step0.svg

Lines changed: 4 additions & 0 deletions
Loading

__tests__/integration/snapshots/interaction/alphabet-interval-active-marker-type/step1.svg

Lines changed: 4 additions & 0 deletions
Loading

__tests__/integration/snapshots/interaction/change-size-polar-crosshairs-x-y/step0.svg

Lines changed: 4 additions & 0 deletions
Loading

__tests__/integration/snapshots/interaction/change-size-polar-crosshairs-x-y/step1.svg

Lines changed: 4 additions & 0 deletions
Loading

__tests__/integration/snapshots/interaction/indices-line-crosshairs-x-y/step0.svg

Lines changed: 5 additions & 0 deletions
Loading

__tests__/integration/snapshots/interaction/indices-line-crosshairs-x-y/step1.svg

Lines changed: 5 additions & 0 deletions
Loading

__tests__/integration/snapshots/interaction/missing-area-tooltip-marker/step1.svg

Lines changed: 1 addition & 0 deletions
Loading

__tests__/integration/snapshots/interaction/points-point-tooltip-marker/step0.svg

Lines changed: 1 addition & 0 deletions
Loading

__tests__/integration/snapshots/interaction/stocks-line-slider/step1.svg

Lines changed: 4 additions & 0 deletions
Loading

src/interaction/tooltip.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,8 @@ function updateMarker(root, { data, style, theme }) {
479479
r: 4,
480480
stroke,
481481
lineWidth: 2,
482+
// Prevents blocking clicks on elements behind.
483+
pointerEvents: 'none',
482484
...style,
483485
},
484486
});

0 commit comments

Comments
 (0)