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>
add-next-theme
Carina Wollendorfer 2022-07-25 21:37:32 -04:00 committed by GitHub
parent 629131b7f9
commit 33e79c8ad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ function PhoneInput<FormValues>({ control, name, ...rest }: PhoneInputProps<Form
return (
<BasePhoneInput
{...rest}
international
name={name}
control={control}
countrySelectProps={{ className: "text-black" }}

View File

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