Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blur() call is not forwarded to <TextInput /> #119

Closed
kkgelu opened this issue Mar 10, 2016 · 0 comments
Closed

blur() call is not forwarded to <TextInput /> #119

kkgelu opened this issue Mar 10, 2016 · 0 comments

Comments

@kkgelu
Copy link

kkgelu commented Mar 10, 2016

By checking the issue facebook/react-native#113 I learned that I can call blur() to lose focus on a text input, the following code:

 <TextInput   ref='REF_MY_INPUT'

When this text input is focused, calling this.refs.REF_MY_INPUT.blur() works just fine, it loses focus on the input and dismisses keyboard.

But it does not work on

 <MKTextField   ref='REF_MY_INPUT'

The use case is I am validating the user input on every text change, when it reaches to an valid state, it automatically loses focus/dismissed keyboard on that input area.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant