Skip to content

Conversation

@charliepark
Copy link
Contributor

Users are prevented — when submitting a create form — from using spaces, uppercase letters, or anything besides [a-z0-9-] in their Name fields.

This PR moves that restriction to the actual NameField itself, so when a user types in a space, it's entered in as a dash, when they enter an uppercase letter, it's added as a lowercase letter, and when they enter any non-allowed character, nothing is added to the field.

@vercel
Copy link

vercel bot commented Oct 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Oct 22, 2024 5:12pm

Copy link
Collaborator

@david-crespo david-crespo left a comment

Choose a reason for hiding this comment

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

very nifty idea

@david-crespo david-crespo merged commit 4e96756 into main Oct 22, 2024
7 checks passed
@david-crespo david-crespo deleted the name-field-enhancements branch October 22, 2024 22:43
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.

3 participants