Skip to content

Commit 6c1ca66

Browse files
authored
fix Fancybox caption
API 变更
1 parent 4e5500d commit 6c1ca66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/js/app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -731,8 +731,8 @@ const VolantisFancyBox = (() => {
731731
Thumbs: {
732732
autoStart: false,
733733
},
734-
caption: function (fancybox, carousel, slide) {
735-
return slide.$trigger.alt || null
734+
caption: function (fancybox, slide) {
735+
return slide.thumbEl?.alt || "";
736736
}
737737
});
738738
});

0 commit comments

Comments
 (0)