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

修复了点击获取验证码按钮也会触发注册按钮的逻辑的bug #75

Merged
merged 1 commit into from
Jun 2, 2023
Merged

修复了点击获取验证码按钮也会触发注册按钮的逻辑的bug #75

merged 1 commit into from
Jun 2, 2023

Conversation

tomridder
Copy link
Sponsor Contributor

#74
"获取验证码" 按钮是在一个表单

元素内的,如果你不在点击事件处理函数 handleSendVerification 的最后显式添加 e.preventDefault() 来阻止事件的默认行为,那么点击 "获取验证码" 按钮可能会触发表单的提交事件(因为 的默认 type 是 submit),这样的话,注册按钮对应的 onSubmit={handleRegister} 会被调用。

@vercel
Copy link

vercel bot commented May 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lmo-dash-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 31, 2023 6:22pm
lmo-docs ❌ Failed (Inspect) May 31, 2023 6:22pm

@vercel
Copy link

vercel bot commented May 31, 2023

@tomridder is attempting to deploy a commit to the lmobest Team on Vercel.

A member of the Team first needs to authorize it.

@vercel vercel bot temporarily deployed to Preview – lmo-dash-demo May 31, 2023 18:21 Inactive
@vercel vercel bot temporarily deployed to Preview – lmo-docs May 31, 2023 18:22 Inactive
@AprilNEA AprilNEA merged commit 61cde1a into AprilNEA:main Jun 2, 2023
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants