ElemeFE / ElemeFE/react-amap

请问怎么阻止多个PathSimplifier的冒泡事件?

Open
#101 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

我的父组件有四个PathSimplifier组件,划线有重复的地方,我只想获取最上层划线的数据,用e.nativeEvent.stopImmediatePropagation()无效
```js
pathSimplifierIns.on('pathClick pointClick', function(e, info){
if(e.target){
e.stopPropagation();
e.nativeEvent.stopImmediatePropagation();
}
}.bind(this));
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.