Skip to content

Commit 24dfc60

Browse files
committed
fix: Carousel @slide event is not emitting quasarframework#1659
1 parent 04b2757 commit 24dfc60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/carousel/QCarousel.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ export default {
128128

129129
const finish = () => {
130130
this.$emit('input', this.slide)
131+
this.$emit('slide', this.slide, direction)
131132
this.$emit('slide-direction', direction)
132133
this.__planAutoPlay()
133134
resolve()
@@ -157,6 +158,7 @@ export default {
157158
}
158159
}
159160

161+
this.$emit('slide-trigger', this.slide, direction)
160162
pos = pos * -100
161163

162164
if (!this.animation) {

0 commit comments

Comments
 (0)