Closed lymau closed 2 years ago
HI,
I can not reproduce this issue. Can you provide a repo?
It seems that indexRef
has been changed somewhere.
By default, useEasyLightbox()
just returns ref(0)
.
Hey, I think I know the problem. I forgot to add the parameter when calling show
.
It didn't work
<img @click="show" :src="image">
This one work
<img @click="show(0)" :src="image">
I think you should update the docs. It was wrong. You should change the line 3 https://onycat.com/vue-easy-lightbox/guide/#composables to something like this
<img @click="show(0)" :src="image">
Thank you.
Hi,
I found the problem, it is fixed in v1.8.1.
It works now:
<img @click="show" :src="image">
Hello, I'm gonna say thank you for making this awesome project. I have once tried it before without using composables and it works fine. I like its simplicity of usage. Then, I tried to apply your composables in the SFC. I got this warning and the image is not showing. I think I carefully follow the step in documentation. So, just to be clear I provided my code.
The warning I got on console.
Here's my project specification: "vue": "^3.2.25", "vue-easy-lightbox": "^1.7.1",
I'm using default composable provided in documentation.
The trigger function is attached to img tag.
Here's the vue-easy-lightbox component.
Code in script setup.
That's all. Any help would be appreciated. Thank you.