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(); });