vue2vis icon indicating copy to clipboard operation
vue2vis copied to clipboard

items are added but not visible on timeline

Open bachy opened this issue 5 years ago • 5 comments

Hi, i can't get timeline to display items i can found them in the timeline object with console but there are not displayed at all i'm searching for this for hours, but i cant get it work here is my code https://esadhar.net/gogs/bachir/offline-timeline/src/vue2vis/src/App.vue thanks

bachy avatar Mar 05 '20 22:03 bachy

same code is working perfectly without vue2vis https://esadhar.net/gogs/bachir/offline-timeline/src/master/src/App.vue

bachy avatar Mar 06 '20 08:03 bachy

Hi!
I'm facing the same problem here, after having updated to version 0.0.18. Here is a screenshot of the Vue devTools on the component, showing that items are in component' state, but nothing is displayed on timeline (no element in resulting DOM):

Screenshot_20200331_125840

But I can't figure out why this is happening... Any thought?
Thanks!

polosson avatar Mar 31 '20 11:03 polosson

I'd be happy to help out but I'd need to repro the issue. Here is a working fiddle, just repro your problem from that.

alexcode avatar Apr 10 '20 08:04 alexcode

Hi @alexcode!

I've just edited the fiddle: https://jsfiddle.net/2gp9dokz/2/

It seems that the bug occurs when we differ the fetch of items. If you un-comment the settimeout on lines 15 and 17, the items are not rendered. In my case, the delay is due to a real distant API fetching, using Axios.

Thanks for your time!

polosson avatar Apr 10 '20 09:04 polosson

I'm having the same issue as @polosson, but until there is a fix I was able to work around it by delaying the initialization of the Timeline until my data is fetched via v-if.

jansim avatar Apr 20 '20 17:04 jansim