From 4da868a8d6fc7a9949c0a5975488cad98b8defa1 Mon Sep 17 00:00:00 2001 From: Joel Rodrigues <19577724+joelfmrodrigues@users.noreply.github.com> Date: Sat, 7 Aug 2021 00:58:18 +0100 Subject: [PATCH] reset variable value --- .../listItemComments/components/AddComment/AddComment.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controls/listItemComments/components/AddComment/AddComment.tsx b/src/controls/listItemComments/components/AddComment/AddComment.tsx index 8422de5ac..ce83dd743 100644 --- a/src/controls/listItemComments/components/AddComment/AddComment.tsx +++ b/src/controls/listItemComments/components/AddComment/AddComment.tsx @@ -27,6 +27,7 @@ export const AddComment: React.FunctionComponent = (props: IAd let _reactMentionStyles = reactMentionStyles; const _onChange = useCallback((event, newValue: string, newPlainTextValue: string, mentions: MentionItem[]) => { + _reactMentionStyles = reactMentionStyles; if (newValue) { setSingleLine(false); _reactMentionStyles["&multiLine"].control = { height: 63 };