Replies: 1 comment 2 replies
-
Swiper's
if you use update auto height with transition (by default) it will be still in transition, and if you need to do something after transition then:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use swiper.js with React and render list data dynamically when server response is reached. So, I added
updateAutoHeight()
when list component is updated like below.But, I have case that requirement is keeping scroll position. It means that I have to move scroll position after
height
of slide is updated byupdateAutoHeight()
. However, this function injectnewHeight
by CSS which doesn't occur re-render of React component.In this situation, how can I run re-render when height is updated by
updateAutoHeight()
?Thanks for your reading!
Beta Was this translation helpful? Give feedback.
All reactions