Commit 484a033a authored by iamkun's avatar iamkun Committed by hetech

Carousel: Fix onChange emit value (#16705)

parent a08cc0f1
......@@ -148,7 +148,9 @@ export default {
activeIndex(val, oldVal) {
this.resetItemPosition(oldVal);
this.$emit('change', val, oldVal);
if (oldVal > -1) {
this.$emit('change', val, oldVal);
}
},
autoplay(val) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment