We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5a15be commit 03f3bd9Copy full SHA for 03f3bd9
apps/files/src/components/FilesListVirtual.vue
@@ -252,6 +252,11 @@ export default defineComponent({
252
253
scrollToFile(fileId: number|null, warn = true) {
254
if (fileId) {
255
+ // Do not uselessly scroll to the top of the list.
256
+ if (fileId === this.currentFolder.fileid) {
257
+ return
258
+ }
259
+
260
const index = this.nodes.findIndex(node => node.fileid === fileId)
261
if (warn && index === -1 && fileId !== this.currentFolder.fileid) {
262
showError(this.t('files', 'File not found'))
0 commit comments