Suppress the mobile menu for messages on `screen-md`
authorAlexander Ebert <ebert@woltlab.com>
Tue, 17 Mar 2020 23:34:55 +0000 (00:34 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 17 Mar 2020 23:34:55 +0000 (00:34 +0100)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Mobile.js

index afc3406a81992d016f4fe5339d1ae34f97272b52..da7b4540468e77f72d79b4d4a927869953ca7b85 100644 (file)
@@ -231,7 +231,7 @@ define(
                                        if (quickOptions && navigation.childElementCount) {
                                                quickOptions.classList.add('active');
                                                quickOptions.addEventListener(WCF_CLICK_EVENT, (function (event) {
-                                                       if (_enabled && event.target.nodeName !== 'LABEL' && event.target.nodeName !== 'INPUT') {
+                                                       if (_enabled && UiScreen.is('screen-sm-down') && event.target.nodeName !== 'LABEL' && event.target.nodeName !== 'INPUT') {
                                                                event.preventDefault();
                                                                event.stopPropagation();