diff --git a/web/src/search-box.js b/web/src/search-box.js index 5df18e5..cce2032 100644 --- a/web/src/search-box.js +++ b/web/src/search-box.js @@ -19,7 +19,6 @@ export function shouldAutofocusSearchBar() { return localStorage.mauAutofocusSearchBar === 'true' } -const SEARCHBOX_CLASSNAME = 'search-box' export class SearchBox extends Component { constructor(props) { @@ -34,14 +33,6 @@ export class SearchBox extends Component { this.clearSearch = this.clearSearch.bind(this) } - componentDidMount() { - // required for firefox / webview usage in mobile clients - const inputInWebView = document.querySelector(`.${SEARCHBOX_CLASSNAME} input`) - if (inputInWebView && this.autofocus) { - setTimeout(() => inputInWebView.focus(), 100) - } - } - componentWillReceiveProps(props) { this.value = props.value } @@ -67,11 +58,12 @@ export class SearchBox extends Component { const iconToDisplay = `icon-${isEmpty ? 'search' : 'reset'}` return html` -