File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -370,9 +370,7 @@ export const BCarousel = /*#__PURE__*/ Vue.extend({
370370 /* istanbul ignore if: transition events cant be tested in JSDOM */
371371 if ( this . transitionEndEvent ) {
372372 const events = this . transitionEndEvent . split ( / \s + / )
373- events . forEach ( evt =>
374- eventOff ( currentSlide , evt , onceTransEnd , EVENT_OPTIONS_NO_CAPTURE )
375- )
373+ events . forEach ( evt => eventOff ( nextSlide , evt , onceTransEnd , EVENT_OPTIONS_NO_CAPTURE ) )
376374 }
377375 this . clearAnimationTimeout ( )
378376 removeClass ( nextSlide , dirClass )
@@ -394,9 +392,7 @@ export const BCarousel = /*#__PURE__*/ Vue.extend({
394392 /* istanbul ignore if: transition events cant be tested in JSDOM */
395393 if ( this . transitionEndEvent ) {
396394 const events = this . transitionEndEvent . split ( / \s + / )
397- events . forEach ( event =>
398- eventOn ( currentSlide , event , onceTransEnd , EVENT_OPTIONS_NO_CAPTURE )
399- )
395+ events . forEach ( event => eventOn ( nextSlide , event , onceTransEnd , EVENT_OPTIONS_NO_CAPTURE ) )
400396 }
401397 // Fallback to setTimeout()
402398 this . $_animationTimeout = setTimeout ( onceTransEnd , TRANS_DURATION )
You can’t perform that action at this time.
0 commit comments