From f9f856d7ea9e49f264e0cb13e169ee63972d54b3 Mon Sep 17 00:00:00 2001 From: sean-brydon <55134778+sean-brydon@users.noreply.github.com> Date: Wed, 16 Mar 2022 21:04:12 +0000 Subject: [PATCH] Fixing Ghost Input (#2161) * Fixing Ghost Input * Removing form import Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- apps/web/pages/event-types/[type].tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/web/pages/event-types/[type].tsx b/apps/web/pages/event-types/[type].tsx index fbbd1b80..4d3414aa 100644 --- a/apps/web/pages/event-types/[type].tsx +++ b/apps/web/pages/event-types/[type].tsx @@ -660,7 +660,12 @@ const EventTypePage = (props: inferSSRProps) => {
@@ -1610,6 +1615,8 @@ const EventTypePage = (props: inferSSRProps) => { onChange={(val) => { if (val) { locationFormMethods.setValue("locationType", val.value); + locationFormMethods.unregister("locationLink"); + locationFormMethods.unregister("locationAddress"); setSelectedLocation(val); } }}