From 4393bd040d0cdb8fa2fb9452721f6c4c78859108 Mon Sep 17 00:00:00 2001 From: Kurt Hutten Date: Thu, 31 Dec 2020 18:22:58 +1100 Subject: [PATCH] Fix weird focus issue cause by #184 --- web/src/components/PartProfile/PartProfile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/components/PartProfile/PartProfile.js b/web/src/components/PartProfile/PartProfile.js index 8a91baa..7ff2d8e 100644 --- a/web/src/components/PartProfile/PartProfile.js +++ b/web/src/components/PartProfile/PartProfile.js @@ -187,9 +187,13 @@ const PartProfile = ({ {isEditable ? 'Markdown supported' : ''}
editorRef?.current?.focusAtEnd()} + onClick={(e) => + e?.target?.id === 'description-wrap' && + editorRef?.current?.focusAtEnd() + } >