From: Christopher Ng Date: Thu, 3 Aug 2023 02:15:01 +0000 (-0700) Subject: fix: prevent sidebar from opening X-Git-Tag: v28.0.0beta1~576^2~23 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=10a921ea33450c143a0c2d8c5e72e1c5d59dff28;p=nextcloud-server.git fix: prevent sidebar from opening Signed-off-by: Christopher Ng --- diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 6b964981a47..a3c868789fc 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -707,8 +707,10 @@ tr.addClass('highlighted'); this._currentFileModel = model; + const secondaryActionsOpen = Boolean(tr.find('.actions-secondary-vue').length) + // open sidebar and set file - if (typeof show === 'undefined' || !!show || (OCA.Files.Sidebar.file !== '')) { + if (!secondaryActionsOpen && (typeof show === 'undefined' || !!show || (OCA.Files.Sidebar.file !== ''))) { OCA.Files.Sidebar.open(path.replace('//', '/')) } },