focus composition box on conversation change

pull/1381/head
Audric Ackermann 5 years ago
parent 4e1ec3b65a
commit 7a81c78382
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -184,7 +184,7 @@ export class SessionCompositionBox extends React.Component<Props, State> {
public componentDidUpdate(prevProps: Props, prevState: State) { public componentDidUpdate(prevProps: Props, prevState: State) {
// reset the state on new conversation key // reset the state on new conversation key
if (prevProps.conversationKey !== this.props.conversationKey) { if (prevProps.conversationKey !== this.props.conversationKey) {
this.setState(getDefaultState()); this.setState(getDefaultState(), this.focusCompositionBox);
} }
} }

Loading…
Cancel
Save