Skip to content

Week1 homework done#9

Open
Anny523925 wants to merge 1 commit intodistinctioncoding:mainfrom
Anny523925:practice/anny/week1
Open

Week1 homework done#9
Anny523925 wants to merge 1 commit intodistinctioncoding:mainfrom
Anny523925:practice/anny/week1

Conversation

@Anny523925
Copy link

No description provided.

Copy link

@Gary-Distinctioncoding Gary-Distinctioncoding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work, well-structured and high-standard code quality, no issues found. Since you have finished the work for the week2 homework, consider implementing debouncing for the input event listener and toast for form submission notficaition and error notification

Comment on lines +124 to +131
const { ok, firstInvalid } = validateAll();
if (!ok) {
e.preventDefault();
firstInvalid?.focus();
} else {
e.preventDefault();
alert('Form valid! (simulate submit)');
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e.preventDefault can move to the beggining of the block to avoid redundancy

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.

2 participants