From 7a81c78382718a9ffb376b140e70bb1d76f6eae4 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 19 Nov 2020 14:26:36 +1100 Subject: [PATCH] focus composition box on conversation change --- ts/components/session/conversation/SessionCompositionBox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/components/session/conversation/SessionCompositionBox.tsx b/ts/components/session/conversation/SessionCompositionBox.tsx index fde1fa49b..bd0783dba 100644 --- a/ts/components/session/conversation/SessionCompositionBox.tsx +++ b/ts/components/session/conversation/SessionCompositionBox.tsx @@ -184,7 +184,7 @@ export class SessionCompositionBox extends React.Component { public componentDidUpdate(prevProps: Props, prevState: State) { // reset the state on new conversation key if (prevProps.conversationKey !== this.props.conversationKey) { - this.setState(getDefaultState()); + this.setState(getDefaultState(), this.focusCompositionBox); } }