Multiple inline lightboxes with "finite: true" cause automatic scrolling to the last lightbox on page loaded #144
Answered
by
igordanchenko
laukaichung
asked this question in
Q&A
-
I have multiple inline lightboxes on the same page. When the page is initially loaded, the scrolling would automatically go to the last of the lightboxes. I believe setting
<Lightbox
carousel={{
finite: true,
spacing: 0,
padding: 0,
preload: 3,
}}
index={index}
slides={slides}
plugins={[Inline]}
inline={{
style: {
width: "100%",
maxWidth: "900px",
aspectRatio: "3 / 2",
margin: "0 auto",
},
}}
on={{
view: ({ index }) => setIndex(index),
}}
/> |
Beta Was this translation helpful? Give feedback.
Answered by
igordanchenko
Jun 27, 2023
Replies: 1 comment
-
This is definitely a bug. Thank you for the detailed bug report! Please follow #145 for updates. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
laukaichung
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is definitely a bug. Thank you for the detailed bug report! Please follow #145 for updates.