From 339d82642a6e7395eca45a1750cc4b3a999d709d Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 16 Jan 2017 16:13:02 +0100 Subject: [PATCH] Fixed js error in acp login form --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js index d554c3be15..ce74e5f6b4 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js @@ -141,7 +141,7 @@ define( }); _main.addEventListener(WCF_CLICK_EVENT, function() { - _searchBar.classList.remove('open'); + if (_searchBar) _searchBar.classList.remove('open'); if (Environment.platform() === 'ios' && scrollTop !== null) { UiScreen.scrollEnable(); -- 2.20.1