From ba8002b172f2f1b7e12de9b94f7fd9cfa819f8f1 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 24 Jul 2016 18:53:25 +0200 Subject: [PATCH] Fixed super-fast clicks sometimes causing an error --- wcfsetup/install/files/js/WCF.User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index e97f484cac..96071f286a 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -189,7 +189,7 @@ WCF.User.Panel.Abstract = Class.extend({ if ($.browser.mobile) { this.toggle(); } - else if (this._dropdown.isOpen() && timerBlockClick === null) { + else if ((this._dropdown && this._dropdown.isOpen()) && timerBlockClick === null) { this.toggle(); } }).bind(this)); -- 2.20.1