Improve phone number input (#3472)

* add country code once country selected

* add changes also for when editing workflows

Co-authored-by: CarinaWolli <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2022-07-25 19:37:32 -06:00
1 parent 629131b7f9
commit 33e79c8ad5
2 files changed
+2

No files matched your search

@@ -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) {