diff --git a/apps/common/mobile/lib/view/Search.jsx b/apps/common/mobile/lib/view/Search.jsx index 7123cd6edf..a1f622cf08 100644 --- a/apps/common/mobile/lib/view/Search.jsx +++ b/apps/common/mobile/lib/view/Search.jsx @@ -87,6 +87,7 @@ class SearchView extends Component { replaceQuery: '' }; + this.refSearchbarInput = React.createRef(); this.onSettingsClick = this.onSettingsClick.bind(this); this.onSearchClick = this.onSearchClick.bind(this); this.onReplaceClick = this.onReplaceClick.bind(this); @@ -116,6 +117,9 @@ class SearchView extends Component { api.asc_selectSearchingResults(false); } }, + searchbarEnable: (sb) => { + this.refSearchbarInput.focus(); + } } }); } @@ -264,7 +268,7 @@ class SearchView extends Component {