From 84f19bb4dfc4508adedb2cdea11dd0c782ad9e1b Mon Sep 17 00:00:00 2001 From: GitStart <1501599+gitstart@users.noreply.github.com> Date: Mon, 16 May 2022 15:44:19 +0000 Subject: [PATCH] Bad UX when user wants to set the default Event Type Title #2245 (#2760) Co-authored-by: gitstart --- apps/web/pages/event-types/[type].tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/web/pages/event-types/[type].tsx b/apps/web/pages/event-types/[type].tsx index a88cb3c5be..a275884dee 100644 --- a/apps/web/pages/event-types/[type].tsx +++ b/apps/web/pages/event-types/[type].tsx @@ -914,7 +914,9 @@ const EventTypePage = (props: inferSSRProps) => {

- {eventType.title} + {formMethods.getValues("title") && formMethods.getValues("title") !== "" + ? formMethods.getValues("title") + : eventType.title}

@@ -929,6 +931,10 @@ const EventTypePage = (props: inferSSRProps) => { placeholder={t("quick_chat")} {...formMethods.register("title")} defaultValue={eventType.title} + onBlur={() => { + setEditIcon(true); + formMethods.getValues("title") === "" && formMethods.setValue("title", eventType.title); + }} /> )}