Skip to content

Commit e4540c3

Browse files
committed
fix: handle 9
1 parent 08113ad commit e4540c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

041-verify account UI/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ codes[0].focus();
44

55
codes.forEach((code, index) => {
66
code.addEventListener("keydown", (e) => {
7-
if (e.key >= 0 && e.key < 9) {
7+
if (e.key >= 0 && e.key <= 9) {
88
codes[index].value = "";
99
setTimeout(() => {
1010
codes[index + 1].focus();

0 commit comments

Comments
 (0)