]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: prevent sidebar from opening
authorChristopher Ng <chrng8@gmail.com>
Thu, 3 Aug 2023 02:15:01 +0000 (19:15 -0700)
committerChristopher Ng <chrng8@gmail.com>
Wed, 9 Aug 2023 17:41:18 +0000 (10:41 -0700)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
apps/files/js/filelist.js

index 6b964981a476d1788d0355dee9efb2f51ea1663a..a3c868789fcc395cb5d09125c428c694d3d924a4 100644 (file)
                        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('//', '/'))
                        }
                },