-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Calling .focus()-function on "ui/search-bar".SearchBar doesn't show keayboard but returns true #1973
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
Comments
Hello @Metalmate I have tested your case under API 19, 22 and 23 and indeed the focus does not work. However consider the Android specific behaviour for the native showSoftInput() method. |
Hello @NickIliev In our app we only show the searchbar when it is toggeled by pressing a search-icon in the navigation bar. And indeed, Android opens de keyboard by default, but not when the searchbar is set to visible programatically. On iOS the .focus() opens the keyboard. |
github repo to reproduce : https://github.com/NickIliev/issue_1973 |
This appears to be some kind of Android bug: https://code.google.com/p/android/issues/detail?id=25812 |
@Metalmate
You can clone the entire sample app from here: https://github.com/hamorphis/issue-1973 |
@Metalmate Let me know if this workaround will do it for you so I can close the issue. |
I’m closing this issue because it has been inactive for a few months. |
somebody has a solution? |
It's still an issue to this day, the workaround works for now but it state that the method |
This should be fixed in latest core |
When calling .focus() no keyboard is shown for the searchBar.
NativeScript CLI: 1.7.0
Platform: Android 5.1.1
The text was updated successfully, but these errors were encountered: