jd-opensource / jd-opensource/taro-ui

AtIcon绑定onClick时,stopPropagation失效,而且e参数是个arguments对象

Open
#1,224 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

**问题描述**
AtIcon绑定onClick时,stopPropagation失效,而且e参数是个arguments对象

**复现步骤**

```js
{
console.log("我是父亲")
}}>
{
console.log(e);
e[0].stopPropagation();
console.log("我是儿子")
}} />

```

**期望行为**
点击图标,只打印我是儿子

**报错信息**
打印了我是儿子和我是父亲,而且e参数是arguments对象

**系统信息**
- Taro 版本 [e.g. v.2.2.13]
- Taro UI 版本 [e.g. v.2.3.4]
- 报错平台 [weapp]

**补充信息**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.