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 6f2980d commit 960ff1cCopy full SHA for 960ff1c
src/components/RecycleList.vue
@@ -162,11 +162,15 @@ export default {
162
},
163
164
handleVisibilityChange (isVisible, entry) {
165
- if (this.$_ready && (isVisible || entry.boundingClientRect.width !== 0 || entry.boundingClientRect.height !== 0)) {
166
- this.$emit('visible')
167
- requestAnimationFrame(() => {
168
- this.updateVisibleItems(false)
169
- })
+ if (this.$_ready) {
+ if (isVisible || entry.boundingClientRect.width !== 0 || entry.boundingClientRect.height !== 0) {
+ this.$emit('visible')
+ requestAnimationFrame(() => {
+ this.updateVisibleItems(false)
170
+ })
171
+ } else {
172
+ this.$emit('hidden')
173
+ }
174
}
175
176
0 commit comments