We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 605ed25 commit ae9479dCopy full SHA for ae9479d
src/components/Carousel/Carousel.ts
@@ -514,16 +514,14 @@ export const Carousel = defineComponent({
514
emit('update:modelValue', mappedIndex)
515
516
const transitionCallback = (): void => {
517
- if (config.wrapAround) {
518
- if (mappedIndex !== targetIndex) {
519
- modelWatcher.resume()
520
-
521
- currentSlideIndex.value = mappedIndex
522
- emit('loop', {
523
- currentSlideIndex: currentSlideIndex.value,
524
- slidingToIndex: slideIndex,
525
- })
526
- }
+ if (config.wrapAround && mappedIndex !== targetIndex) {
+ modelWatcher.resume()
+
+ currentSlideIndex.value = mappedIndex
+ emit('loop', {
+ currentSlideIndex: currentSlideIndex.value,
+ slidingToIndex: slideIndex,
+ })
527
}
528
529
emit('slide-end', {
0 commit comments