Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么要屏蔽button的 event 参数? #396

Closed
pfdgithub opened this issue Oct 19, 2016 · 2 comments
Closed

为什么要屏蔽button的 event 参数? #396

pfdgithub opened this issue Oct 19, 2016 · 2 comments
Assignees
Labels

Comments

@pfdgithub
Copy link

本地环境

  • antd-mobile 版本:0.9.3
  • 操作系统及其版本:Windows 7 x64
  • 浏览器及其版本:Chrome 52

你做了什么?

使用 antd-mobile 的 Button 组件,点击后通过 event 参数阻断事件冒泡。

你期待的结果是:

接收到 event 参数。

实际上的结果:

Button 组件自定义了 onClick 属性,但没有将 event 参数透传出来。

可重现的在线演示

button/index.web.tsx#L40

@pfdgithub pfdgithub changed the title 为什么要屏蔽button的点击事件? 为什么要屏蔽button的 event 参数? Oct 19, 2016
@afc163
Copy link
Member

afc163 commented Oct 19, 2016

应该是 bug 。

@lock
Copy link

lock bot commented May 28, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants