From d05f67b2f3eec245ac09ecdbff4dcedbfe7645c3 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 10 Jul 2017 14:32:10 +0200 Subject: [PATCH] properly block file upload to non-active filelist Signed-off-by: Robin Appelman --- apps/files/js/filelist.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index b1e7c3f5f8..45591e5b7a 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2737,6 +2737,7 @@ if (self.$el.hasClass('hidden')) { // do not upload to invisible lists + e.preventDefault(); return false; } @@ -2748,6 +2749,7 @@ && !self.$el.has(dropTarget).length // dropped inside list && !dropTarget.is(self.$container) // dropped on main container ) { + e.preventDefault(); return false; }