Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
feat(textInput): add new input type tel
Browse files Browse the repository at this point in the history
  • Loading branch information
oizuldan committed Feb 24, 2020
1 parent 7b6b2cc commit 2128500
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/input/TextInputWithLabelFormGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface Props {
label: string
name: string
isEditable?: boolean
type: 'text' | 'email' | 'number'
type: 'text' | 'email' | 'number' | 'tel'
placeholder?: string
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void
}
Expand Down
2 changes: 1 addition & 1 deletion src/patients/GeneralInformation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ const GeneralInformation = (props: Props) => {
onChange={(event: React.ChangeEvent<HTMLInputElement>) => {
onInputElementChange(event, 'phoneNumber')
}}
type="number"
type="tel"
/>
</div>
<div className="col">
Expand Down

0 comments on commit 2128500

Please sign in to comment.