mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #45711 from nextcloud/fix/files-ref-type
fix(files): Correctly type virtual files list ref type
This commit is contained in:
commit
e9705ec7d5
3 changed files with 8 additions and 6 deletions
|
|
@ -110,6 +110,7 @@
|
|||
import type { View, ContentsWithRoot } from '@nextcloud/files'
|
||||
import type { Upload } from '@nextcloud/upload'
|
||||
import type { CancelablePromise } from 'cancelable-promise'
|
||||
import type { ComponentPublicInstance } from 'vue'
|
||||
import type { Route } from 'vue-router'
|
||||
import type { UserConfig } from '../types.ts'
|
||||
|
||||
|
|
@ -455,8 +456,9 @@ export default defineComponent({
|
|||
this.fetchContent()
|
||||
|
||||
// Scroll to top, force virtual scroller to re-render
|
||||
if (this.$refs?.filesListVirtual?.$el) {
|
||||
this.$refs.filesListVirtual.$el.scrollTop = 0
|
||||
const filesListVirtual = this.$refs?.filesListVirtual as ComponentPublicInstance<typeof FilesListVirtual> | undefined
|
||||
if (filesListVirtual?.$el) {
|
||||
filesListVirtual.$el.scrollTop = 0
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
6
dist/files-main.js
vendored
6
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue