Close EmojiSearchbar on message input focus
This commit is contained in:
parent
036066cd9a
commit
de9036edeb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue