We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b649c35 commit 317b098Copy full SHA for 317b098
packages/core/ui/search-bar/index.android.ts
@@ -121,8 +121,15 @@ export class SearchBar extends SearchBarBase {
121
122
public focus(): boolean {
123
const result = super.focus();
124
+
125
if (result) {
- ad.showSoftInput(this.nativeViewProtected);
126
+ if (this.nativeViewProtected) {
127
+ // Android search view is a view consisted of multiple views, so get the focused view
128
+ const focusedNativeView = this.nativeViewProtected.findFocus();
129
+ if (focusedNativeView) {
130
+ ad.showSoftInput(focusedNativeView);
131
+ }
132
133
}
134
135
return result;
0 commit comments