From c9de39552208a0f0523cce49c195a92fb3f39d40 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 5 Dec 2014 16:55:52 +0100 Subject: [PATCH] Prevent a weird issue in Chrome for Android Chrome for Android somtimes report an empty value for a text input if the previously typed-in character is an underscore. For some reason the event is not properly bound to the original "this"-context, yielding unexpected results. To clarify this, I have no idea why it happens, thus I simply work-around it and ignore it for the time being. --- wcfsetup/install/files/js/WCF.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index b1f60721c5..3a885b2d0b 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -6108,7 +6108,7 @@ WCF.Search.Base = Class.extend({ var $content = this._getSearchString(event); if ($content === '') { - this._clearList(true); + this._clearList(false); } else if ($content.length >= this._triggerLength) { var $parameters = { -- 2.20.1