From 6321eedd870bf0567bd573424d692e2d19da7e54 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 15 Sep 2020 11:52:11 +0200 Subject: [PATCH] Fix missing context menu --- www/common/drive-ui.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index fde53b574..fe3b1b588 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -3682,6 +3682,9 @@ define([ APP.hideMenu(); return; } + if (!$li.length) { + return void $dirContent.contextmenu(); + } // Open the menu $li.contextmenu(); });