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

[Input]: 某些事件会调用两次 #1972

Closed
nnmax opened this issue Apr 13, 2022 · 0 comments
Closed

[Input]: 某些事件会调用两次 #1972

nnmax opened this issue Apr 13, 2022 · 0 comments
Labels
🐛 bug Something isn't working

Comments

@nnmax
Copy link
Contributor

nnmax commented Apr 13, 2022

Describe the bug
onClick, onFocus, onBlur, onMouseEnter, onMouseLeave 事件会调用两次

To Reproduce

最小复现 Demo:

const Demo = () => <Input.Button placeholder="Click me" onClick={(e) => console.log(e)} />

在此组件上点击一次,会触发两次 onClick 的调用;

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots

2022-05-20.11.13.56.mp4

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@nnmax nnmax assigned nnmax and unassigned nnmax Apr 13, 2022
@nnmax nnmax added the 🐛 bug Something isn't working label Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants