-
Notifications
You must be signed in to change notification settings - Fork 713
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
Pressing enter to submit the Super Admin creation form in the Setup Wizard and show form validation error #11465 #11500
Pressing enter to submit the Super Admin creation form in the Setup Wizard and show form validation error #11465 #11500
Conversation
Build Artifacts
|
Hi @a6ar55 , thank you for your contribution! We will definitely follow-up, there's been lots of pull requests in our queue. |
} else { | ||
// Blurring will cause validation errors to show if needed | ||
e.target.blur(); | ||
if (e.key === 'Enter') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite understand this. If checkErrorsAndSubmit
is triggered by the the @keydown.enter="checkErrorsAndSubmit"
event handler, why do you need to check in the event key is 'Enter'? https://vuejs.org/guide/essentials/event-handling.html#key-modifiers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, you're right. It was a mistake. I will fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jredrejo I have corrected it.
Hi @a6ar55, thanks for following-up. We will re-review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code look good to me.
Tested and working fine.
-displays form validation error when enter is clicked.(Password do not match)
Screen.Recording.2023-11-04.at.2.04.16.PM.mov
References
This fixes issue #11465
Reviewer guidance
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)