Close EmojiSearchbar on message input focus

This commit is contained in:
Danish Ahmed Mirza 2022-06-30 01:34:14 +05:30 committed by Danish
parent 036066cd9a
commit de9036edeb
1 changed files with 5 additions and 0 deletions

View File

@ -954,6 +954,10 @@ class MessageBox extends Component<IMessageBoxProps, IMessageBoxState> {
this.setState({ showEmojiKeyboard: false });
};
closeEmojiSearchbar = () => {
this.setState({ showEmojiSearchbar: false });
};
closeEmojiAndAction = (action?: Function, params?: any) => {
const { showEmojiKeyboard } = this.state;
@ -1260,6 +1264,7 @@ class MessageBox extends Component<IMessageBoxProps, IMessageBoxState> {
defaultValue=''
multiline
testID={`messagebox-input${tmid ? '-thread' : ''}`}
onFocus={this.closeEmojiSearchbar}
{...isAndroidTablet}
/>
<RightButtons