Skip to content

Commit

Permalink
fix: otp is not set on enter (close alist-org/alist#4822)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jul 21, 2023
1 parent dd5c0e5 commit e947533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const Login = () => {
name="otp"
placeholder={t("login.otp-tips")}
value={opt()}
onChange={(e) => setOpt(e.currentTarget.value)}
onInput={(e) => setOpt(e.currentTarget.value)}
onKeyDown={(e) => {
if (e.key === "Enter") {
Login()
Expand Down

0 comments on commit e947533

Please sign in to comment.