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

scrollTo when component is rerender #484

Open
popoleeMaster opened this issue Jan 28, 2021 · 0 comments
Open

scrollTo when component is rerender #484

popoleeMaster opened this issue Jan 28, 2021 · 0 comments

Comments

@popoleeMaster
Copy link

popoleeMaster commented Jan 28, 2021

I have a situation where a swiper is in a modal, and the modal update based on the selection in the swiper.

Now, It is easy to reset the selection when the modal refresh using the activeSlideKey but I do not find any easy way to scroll to the activeSlideKey when the swiper is redrawn. There should be a way to scrollTo or load with scroll when assigning an activeSlideKey

I tried to save the scroll, then use set scroll once the component is rerender. it workish, but something inside the lib would be much easier.

@popoleeMaster popoleeMaster changed the title scrollTo scrollTo when component is rerender Jan 28, 2021
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

1 participant