We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24fe6f4 commit 4fc245eCopy full SHA for 4fc245e
example/src/views/chat-room/Main.vue
@@ -98,9 +98,9 @@ export default {
98
this.$nextTick(() => {
99
const vsl = this.$refs.vsl
100
const offset = sids.reduce((previousValue, currentSid) => {
101
- const previousSize = typeof previousValue === 'string' ? vsl.getSize(previousValue) : previousValue
+ const previousSize = typeof previousValue === 'string' && previousValue !== 0 ? vsl.getSize(previousValue) : previousValue
102
return previousSize + this.$refs.vsl.getSize(currentSid)
103
- })
+ }, 0)
104
this.setVirtualListToOffset(offset)
105
106
this.param.isFetching = false
0 commit comments