From 21285004c478e07c590eed5ac2670b4eeec45e20 Mon Sep 17 00:00:00 2001 From: aisultankassenov Date: Mon, 24 Feb 2020 14:42:17 +0600 Subject: [PATCH] feat(textInput): add new input type tel --- src/components/input/TextInputWithLabelFormGroup.tsx | 2 +- src/patients/GeneralInformation.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/input/TextInputWithLabelFormGroup.tsx b/src/components/input/TextInputWithLabelFormGroup.tsx index 9946243d82..5f1d8ef2fa 100644 --- a/src/components/input/TextInputWithLabelFormGroup.tsx +++ b/src/components/input/TextInputWithLabelFormGroup.tsx @@ -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) => void } diff --git a/src/patients/GeneralInformation.tsx b/src/patients/GeneralInformation.tsx index 60beb8021f..48fdd5faeb 100644 --- a/src/patients/GeneralInformation.tsx +++ b/src/patients/GeneralInformation.tsx @@ -205,7 +205,7 @@ const GeneralInformation = (props: Props) => { onChange={(event: React.ChangeEvent) => { onInputElementChange(event, 'phoneNumber') }} - type="number" + type="tel" />