Closed mikebronner closed 6 years ago
Have the same problem
Me too
I am working on it
I have already fixed the issue with @mikebronner suggestions. I think the problem is that your images are fetched at run time, and this process makes $refs.container
undefined.
<div @click.stop="closeLightBox">
<div
class="vue-lb-container"
v-show="lightBoxOn"
v-if="images && images.length > 0"
ref="container"
>
Version 6.0.1 has already been deployed on npm.
I'm getting the following error during page-load:
Here's how I am rendering it out:
It appears to have to do with this line:
where
this.$refs.container
isundefined
. Updating this to the following seems to have worked:Any thoughts on what may be causing this? It seems to work fine; but I need to clear any errors from the console. Thanks! :)