From 10a921ea33450c143a0c2d8c5e72e1c5d59dff28 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Wed, 2 Aug 2023 19:15:01 -0700 Subject: [PATCH] fix: prevent sidebar from opening Signed-off-by: Christopher Ng --- apps/files/js/filelist.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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('//', '/')) } }, -- 2.39.5