Skip to content

Beniciovargas/input field#33

Open
beniciovargas wants to merge 4 commits intomainfrom
beniciovargas/inputField
Open

Beniciovargas/input field#33
beniciovargas wants to merge 4 commits intomainfrom
beniciovargas/inputField

Conversation

@beniciovargas
Copy link
Contributor

This PR builds from Shilpa's branch for the inputField component and implements @MelisaIm's feedback from PR #24:

  • adds placeholder prop to align with design spec

  • adds isEmail boolean to verify email field input is an email

  • adds an onSubmit() for email validation and provides errror messaging should an input not be valid; passing via onSubmitEditing prop to component so parent can pass more specific actions onSubmit

  • adds validation prop to component so that more specific validation can come from parent component (ie phone number)

  • add sanitizing logic to the input on the onChange() to process before storing (removes whitespace or trailing spaces, escapes special characters, and replaces null characters)

  • adds tests for the inputField component

@beniciovargas beniciovargas self-assigned this Sep 5, 2024
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.

2 participants