From 9d758a040baf0a0364cadd90bf9ac945ebf75fcb Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 9 Jun 2017 15:45:46 +0200 Subject: [PATCH] Fix an issue with the search field not displayed properly --- www/drive/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/drive/main.js b/www/drive/main.js index ee241ffed..ce90cf999 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -1838,7 +1838,7 @@ define([ module.resetTree(); - if (displayedCategories.indexOf(SEARCH) !== -1) { + if (displayedCategories.indexOf(SEARCH) !== -1 && $tree.find('#searchInput').length) { // in history mode we want to focus the version number input if (!history.isHistoryMode && !APP.mobile()) { var st = $tree.scrollTop() || 0;