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 1d2b6ff commit c642fa2Copy full SHA for c642fa2
src/components/DynamicScroller.vue
@@ -103,7 +103,9 @@ export default {
103
},
104
105
watch: {
106
- items: 'forceUpdate',
+ items () {
107
+ this.forceUpdate(false)
108
+ },
109
110
111
created () {
@@ -138,8 +140,8 @@ export default {
138
140
this.$emit('visible')
139
141
142
- forceUpdate () {
- this.vscrollData.heights = {}
143
+ forceUpdate (clear = true) {
144
+ if (clear) this.vscrollData.heights = {}
145
this.$emit('vscroll:update', { force: true })
146
147
0 commit comments