Skip to content

Commit

Permalink
Carousel: Fix onChange emit value (ElemeFE#16705)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun authored and oleksiikhr committed Jan 13, 2020
1 parent 5bfb82e commit c27ad04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/carousel/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c27ad04

Please sign in to comment.