vue-carousel-3d icon indicating copy to clipboard operation
vue-carousel-3d copied to clipboard

It dose not work when data fetched from server!

Open codegnewtmailcom opened this issue 5 years ago • 2 comments

codegnewtmailcom avatar Jul 27 '19 05:07 codegnewtmailcom

My data is also fetched from the server. My issue was that the slides are initially invisible unless I make it rerender somehow (like resizing the browser/revisiting the route). I set the length of my array as key of the component and it works now..

<!-- I'm using a container component -->
<room-carousel :listData="roomList" :key="roomList.length"></room-carousel>

eanesparrago avatar Aug 07 '19 02:08 eanesparrago

@eanesparrago After adding the attribute key, the problem is solved, which is very strange

LongYue9608 avatar May 06 '21 07:05 LongYue9608