Improve phone number input (#3472)

* add country code once country selected

* add changes also for when editing workflows

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Carina Wollendorfer
2022-07-25 19:37:32 -06:00
committed by GitHub
co-authored by CarinaWolli kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
parent 629131b7f9
commit 33e79c8ad5
2 changed files with 2 additions and 0 deletions
@@ -15,6 +15,7 @@ function PhoneInput<FormValues>({ control, name, ...rest }: PhoneInputProps<Form
return (
<BasePhoneInput
{...rest}
international
name={name}
control={control}
countrySelectProps={{ className: "text-black" }}
@@ -231,6 +231,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
<div className="flex space-y-1">
<div className="mt-1 ">
<PhoneInput
international
value={sendTo}
onChange={(newValue) => {
if (newValue) {