Skip to content

Commit

Permalink
added max date as today's date
Browse files Browse the repository at this point in the history
  • Loading branch information
ppsahu committed Jan 17, 2025
1 parent 0d21568 commit c350102
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/EventRegistration/TestEventRegistration.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ const TestEventRegistration = () => {
name="dateOfBirth"
value={formValues.dateOfBirth}
onChange={handleChange}
max={new Date().toISOString().split("T")[0]}
style={{
width: "100%",
padding: "0.5rem",
Expand Down

0 comments on commit c350102

Please sign in to comment.