Skip to content

Commit

Permalink
Merge pull request #2330 from akash70629/name
Browse files Browse the repository at this point in the history
🛠️ Fix:  Name Field validation in Feedback page
  • Loading branch information
codervivek5 authored Oct 17, 2024
2 parents cd2ed8f + cacd177 commit f5f67e6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/User/components/FeedbackForm/Feedback.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ const FeedbackModal = () => {
onChange={handleNameChange}
placeholder="Enter your name"
required
pattern="[a-zA-Z ]+"
onInvalid={(e) => {
e.target.setCustomValidity('Numbers and Symbols are not allowed.');
}}
onInput={(e) => {
e.target.setCustomValidity('');
}}
/>
<label htmlFor="email" className="label-big">
Your Email
Expand Down

0 comments on commit f5f67e6

Please sign in to comment.