Skip to content

Commit 10a921e

Browse files
committed
fix: prevent sidebar from opening
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 parent 10b0d67 commit 10a921e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/files/js/filelist.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,10 @@
707707
tr.addClass('highlighted');
708708
this._currentFileModel = model;
709709

710+
const secondaryActionsOpen = Boolean(tr.find('.actions-secondary-vue').length)
711+
710712
// open sidebar and set file
711-
if (typeof show === 'undefined' || !!show || (OCA.Files.Sidebar.file !== '')) {
713+
if (!secondaryActionsOpen && (typeof show === 'undefined' || !!show || (OCA.Files.Sidebar.file !== ''))) {
712714
OCA.Files.Sidebar.open(path.replace('//', '/'))
713715
}
714716
},

0 commit comments

Comments
 (0)