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

Slide should update its currentPageIndex value when initialIndex value changed #278

Closed
tinymins opened this issue Aug 10, 2018 · 1 comment

Comments

@tinymins
Copy link

Version

1.10.10

Reproduction link

https://codesandbox.io/s/jzy76zjroy

Steps to reproduce

Change slide's initialIndex in page's mounted method.

What is expected?

Slide will init with new initialIndex value which was set in mounted

What is actually happening?

Slide still use the default initialIndex value in data()

Dependencies Version

vue: 2.5.17
better-scroll: 1.12.0


I've created a PR, just with one line added to solve this problem.

@dolymood
Copy link
Contributor

1.10.11 fixed this issue

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

No branches or pull requests

2 participants