Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] carousel unexpected change event emitted #16128

Closed
Meowu opened this issue Jun 19, 2019 · 0 comments · Fixed by #16705
Closed

[Bug Report] carousel unexpected change event emitted #16128

Meowu opened this issue Jun 19, 2019 · 0 comments · Fixed by #16705

Comments

@Meowu
Copy link

Meowu commented Jun 19, 2019

Element UI version

2.4.11

OS/Browsers version

All

Vue version

2.5.21

Reproduction Link

https://codepen.io/vamdoose/pen/rEMPLr?editors=1111

Steps to reproduce

  1. listen an change event on the carousel component.
  2. when the component created, the active index is set to 0 and emits an change event.

What is Expected?

the data prop activeIndex set 0 as the initial value instead of -1 .

What is actually happening?

Since the component created, the active index changes from -1 to 0 and emits the change event.

Is that an intended phenomenon or unexpected issue ?
Why not just set the initial data prop activeIndex to 0 instead of -1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants