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

Pressing enter to submit the Super Admin creation form in the Setup Wizard and show form validation error #11465 #11500

Merged
merged 2 commits into from
Nov 24, 2023

Conversation

a6ar55
Copy link
Contributor

@a6ar55 a6ar55 commented Nov 4, 2023

-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

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical user journeys are covered by Gherkin stories
  • Critical and brittle code paths are covered by unit tests

PR process

  • PR has the correct target branch and milestone
  • PR has 'needs review' or 'work-in-progress' label
  • If PR is ready for review, a reviewer has been added. (Don't use 'Assignees')
  • If this is an important user-facing change, PR or related issue has a 'changelog' label
  • If this includes an internal dependency change, a link to the diff is provided

Reviewer checklist

  • Automated test coverage is satisfactory
  • PR is fully functional
  • PR has been tested for accessibility regressions
  • External dependency files were updated if necessary (yarn and pip)
  • Documentation is updated
  • Contributor is in AUTHORS.md

@MisRob
Copy link
Member

MisRob commented Nov 10, 2023

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') {
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@MisRob
Copy link
Member

MisRob commented Nov 24, 2023

Hi @a6ar55, thanks for following-up. We will re-review.

Copy link
Member

@jredrejo jredrejo left a 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.

@jredrejo jredrejo merged commit 96c41cc into learningequality:release-v0.16.x Nov 24, 2023
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants