Skip to content

Commit

Permalink
Merge pull request #5269 from flexion/10463-bug
Browse files Browse the repository at this point in the history
10463 Bug: update telephone input elements
  • Loading branch information
jimlerza authored Aug 21, 2024
2 parents e031992 + 555da14 commit 16fcac2
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 13 deletions.
1 change: 0 additions & 1 deletion web-client/src/styles/forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ legend {

input[type='email'],
input[type='number'],
input[type='tel'],
input[type='text'],
textarea,
select {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export const AddPetitionerToCase = connect(
data-testid="add-petitioner-phone"
id="phone"
name="contact.phone"
type="tel"
type="text"
value={form.contact.phone || ''}
onChange={e => {
updateFormValueSequence({
Expand Down
2 changes: 1 addition & 1 deletion web-client/src/views/ContactEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const ContactEdit = connect(
data-testid="phone-number-input"
id="phone"
name="contact.phone"
type="tel"
type="text"
value={form.contact.phone || ''}
onBlur={() => {
validatePetitionerSequence();
Expand Down
2 changes: 1 addition & 1 deletion web-client/src/views/EditPetitionerInformationInternal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const EditPetitionerInformationInternal = connect(
className="usa-input max-width-200"
id="phone"
name="contact.phone"
type="tel"
type="text"
value={form.contact.phone || ''}
onBlur={() => {
validatePetitionerSequence();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const PractitionerContactForm = connect(
data-testid="practitioner-phone-input"
id="phone"
name="contact.phone"
type="tel"
type="text"
value={form.contact.phone || ''}
onBlur={() => {
onBlurValidationSequence();
Expand All @@ -94,7 +94,7 @@ export const PractitionerContactForm = connect(
className="usa-input"
id="additional-phone"
name="additionalPhone"
type="tel"
type="text"
value={form.additionalPhone || ''}
onChange={e => {
onChangeUpdateSequence({
Expand Down
2 changes: 1 addition & 1 deletion web-client/src/views/StartCase/ContactPrimary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export const ContactPrimary = connect(
data-testid="phone"
id="phone"
name="contactPrimary.phone"
type="tel"
type="text"
value={data.contactPrimary.phone || ''}
onBlur={() => {
onBlurSequence();
Expand Down
2 changes: 1 addition & 1 deletion web-client/src/views/StartCase/ContactPrimaryUpdated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export const ContactPrimaryUpdated = connect<
id="primary-phone"
name="contactPrimary.phone"
ref={registerRef && registerRef('contactPrimary.phone')}
type="tel"
type="text"
value={addressInfo.phone || ''}
onBlur={() => {
handleBlur({
Expand Down
2 changes: 1 addition & 1 deletion web-client/src/views/StartCase/ContactSecondary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const ContactSecondary = connect(
data-testid="contact-secondary-phone-input"
id="secondaryPhone"
name="contactSecondary.phone"
type="tel"
type="text"
value={data.contactSecondary.phone || ''}
onBlur={() => {
onBlurSequence();
Expand Down
2 changes: 1 addition & 1 deletion web-client/src/views/StartCase/ContactSecondaryUpdated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export const ContactSecondaryUpdated = connect<
id="secondary-phone"
name="contactSecondary.phone"
ref={registerRef && registerRef('contactSecondary.phone')}
type="tel"
type="text"
value={addressInfo.phone || ''}
onBlur={() => {
handleBlur({
Expand Down
4 changes: 2 additions & 2 deletions web-client/src/views/StyleGuide/Forms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const Forms = () => (
<input
className="usa-input max-width-200"
id="input-tel"
type="tel"
type="text"
/>
</div>

Expand All @@ -96,7 +96,7 @@ export const Forms = () => (
<input
className="usa-input max-width-200 usa-input--error"
id="input-tel-error"
type="tel"
type="text"
/>
<span className="usa-error-message">Error message</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web-client/src/views/UserContactEditForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const UserContactEditForm = connect(
data-testid="phone-number-input"
id="phone"
name="contact.phone"
type="tel"
type="text"
value={form.contact.phone || ''}
onBlur={() => {
validateUserContactSequence();
Expand Down

0 comments on commit 16fcac2

Please sign in to comment.