Skip to content

Commit

Permalink
revert input blur
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisnojima committed Jan 29, 2020
1 parent c78713f commit b308642
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import React, {PureComponent} from 'react'
import * as Kb from '../../../../common-adapters/mobile.native'
import * as Styles from '../../../../styles'
import * as RPCChatTypes from '../../../../constants/types/rpc-chat-gen'
import * as Container from '../../../../util/container'
import {isIOS, isLargeScreen} from '../../../../constants/platform'
import {LayoutEvent} from '../../../../common-adapters/box'
import {
Expand Down Expand Up @@ -83,11 +82,7 @@ class _PlatformInput extends PureComponent<PlatformInputPropsInternal, State> {
this.props.onChangeText(text)
}

private onSubmit = async () => {
// allow auto correct to happen
this.input?.blur()
await Container.timeoutPromise(20)

private onSubmit = () => {
const text = this.getText()
if (text) {
this.props.onSubmit(text)
Expand Down

0 comments on commit b308642

Please sign in to comment.