Skip to content

Commit a147827

Browse files
committed
fix(lightbox): fix duplicate key in image thumbs
1 parent c3131e8 commit a147827

File tree

5 files changed

+5217
-4
lines changed

5 files changed

+5217
-4
lines changed

dist/vue-image-lightbox.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-image-lightbox.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-image-lightbox",
33
"description": "A Vue.js package to display an image gallery lightbox",
4-
"version": "6.1.1",
4+
"version": "6.1.2",
55
"author": "Nguyen Thien Dzung <[email protected]>",
66
"license": "MIT",
77
"main": "dist/vue-image-lightbox.min.js",

src/components/template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979

8080
<div
8181
v-for="(image, index) in imagesThumb"
82-
:key="index"
82+
:key="typeof image === 'string' ? `${image}${index}` : index"
8383
:class="'vue-lb-modal-thumbnail' + (select === index ? '-active' : '')"
8484
v-lazy:background-image="image"
8585
v-show="index >= thumbIndex.begin && index <= thumbIndex.end"

0 commit comments

Comments
 (0)