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