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

Fix focus issue on iOS when hitting clear indicator #3326

Merged
merged 3 commits into from
Jun 2, 2019

Conversation

stevemao
Copy link
Contributor

@stevemao stevemao commented Jan 7, 2019

input.focus() only works with touch events on iOS. Wrapping it in setTimeout makes it async and you won't bring up the virtual keyboard.

`input.focus()` only works with touch events on iOS. Wrapping it in `setTimeout` makes it async and you won't bring up the virtual keyboard.
@JedWatson JedWatson mentioned this pull request Jun 2, 2019
@JedWatson
Copy link
Owner

Thanks @stevemao

@JedWatson JedWatson merged commit dc470e6 into JedWatson:master Jun 2, 2019
@matanstorr
Copy link

matanstorr commented Jun 3, 2019

The keyboard now comes up after hitting the clear indicator on iOS(thanks @stevemao), but if I type it doesn't work(I need to close the component and reopen for it to work again), can you offer any help or fix?

@stevemao
Copy link
Contributor Author

stevemao commented Jun 4, 2019

@matanstorr this PR should fix the problem you are talking about.

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

Successfully merging this pull request may close these issues.

None yet

3 participants