Scheduling infrastructure for absolutely everyone.
fix: phone input update state persistence (#9471)
Jaideep Guntupalli3a352a94f6b5
diff --git a/apps/web/components/dialog/EditLocationDialog.tsx b/apps/web/components/dialog/EditLocationDialog.tsxindex ac7f83ed72d..5b59ff4cd15 100644--- a/apps/web/components/dialog/EditLocationDialog.tsx+++ b/apps/web/components/dialog/EditLocationDialog.tsx@@ -57,12 +57,15 @@ const LocationInput = (props: {<Input {...locationFormMethods.register(eventLocationType.variable)} type="text" {...remainingProps} />);} else if (eventLocationType?.organizerInputType === "phone") {+ const { defaultValue, ...rest } = remainingProps;+return (<Controllername={eventLocationType.variable}control={control}+ defaultValue={defaultValue}render={({ field: { onChange, value } }) => {- return <PhoneInput onChange={onChange} value={value} {...remainingProps} />;+ return <PhoneInput onChange={onChange} value={value} {...rest} />;}}/>);