PLDaily/vue2-waterfall

Best way to remove an item from the waterfall?

Closed this issue · 2 comments

Pitu commented

I use waterfall to display user uploads. When a user deletes a file, I remove the element from the waterfall but then it becomes broken as seen on this video. Is there a way to manually trigger a re-render / re-sort of the waterfall items?

<vue2-waterfall v-if="reset"></vue2-waterfall>
this.reset = false
this.$nextTick(() => {
  this.reset = true
})

try this.

Pitu commented

That did the trick, thanks!