From d89e080b366b3120c44d60c1547d373d7464b5e5 Mon Sep 17 00:00:00 2001 From: Kurt Hutten Date: Wed, 11 Aug 2021 20:41:31 +1000 Subject: [PATCH] Fix project renaming in safari Resolves #434 --- .../EditableProjecTitle/EditableProjecTitle.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/web/src/components/EditableProjecTitle/EditableProjecTitle.tsx b/app/web/src/components/EditableProjecTitle/EditableProjecTitle.tsx index 1f6e42d..9598cbc 100644 --- a/app/web/src/components/EditableProjecTitle/EditableProjecTitle.tsx +++ b/app/web/src/components/EditableProjecTitle/EditableProjecTitle.tsx @@ -76,12 +76,10 @@ const EditableProjectTitle = ({ value={newTitle} onChange={onTitleChange} ref={inputRef} - onBlur={({ relatedTarget }) => { - if (relatedTarget?.id !== 'rename-button') { - setInEditMode(false) - setNewTitle(projectTitle) - } - }} + onBlur={() => setTimeout(() => { + setInEditMode(false) + setNewTitle(projectTitle) + }, 300)} />