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

Fix 'index' prop on iOS #520

Closed
wants to merge 1 commit into from
Closed

Fix 'index' prop on iOS #520

wants to merge 1 commit into from

Conversation

Exilz
Copy link
Contributor

@Exilz Exilz commented Aug 14, 2017

Is it a bugfix ?

Yes, commit ff12771 breaks the index prop on iOS which means you can't set the first slide anymore.

Is it a new feature ?

Nope

Describe what you've done:

The condition on line 258 is always false, this.state.offset wasn't set on the first render.

How to test it ?

Render the swiper with an index set to an int, you can see it starts properly on this value.

Commit ff12771 breaks the `index` prop on `iOS` which means you can't set the first slide anymore.
Since the condition on line `258` is always `false`, `this.state.offset` wasn't set on the first render.
@arribbar
Copy link
Collaborator

Thanks for this PR.
But it seems it is duplicated with #516

@arribbar arribbar closed this Aug 14, 2017
@Exilz
Copy link
Contributor Author

Exilz commented Aug 14, 2017

Nevermind, I missed it 🙃

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

Successfully merging this pull request may close these issues.

2 participants