From 3a352a94f6b51a3cd66f0f89b838bb08fffd071a Mon Sep 17 00:00:00 2001 From: Jaideep Guntupalli <63718527+JaideepGuntupalli@users.noreply.github.com> Date: Tue, 13 Jun 2023 20:24:13 +0530 Subject: [PATCH] fix: phone input update state persistence (#9471) * fix: phone input update state persistence * refactor: use spreading Signed-off-by: Udit Takkar --------- Signed-off-by: Udit Takkar Co-authored-by: alannnc Co-authored-by: Udit Takkar --- apps/web/components/dialog/EditLocationDialog.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/components/dialog/EditLocationDialog.tsx b/apps/web/components/dialog/EditLocationDialog.tsx index ac7f83ed72..5b59ff4cd1 100644 --- a/apps/web/components/dialog/EditLocationDialog.tsx +++ b/apps/web/components/dialog/EditLocationDialog.tsx @@ -57,12 +57,15 @@ const LocationInput = (props: { ); } else if (eventLocationType?.organizerInputType === "phone") { + const { defaultValue, ...rest } = remainingProps; + return ( { - return ; + return ; }} /> );