addSlide function can't add between slides #7389
Unanswered
Blaaszkovsky
asked this question in
Q&A
Replies: 2 comments
-
Any news? :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Had the same problem. It seems inserting a string with HTML doesn't work like it says in the documentation, you have to insert an actual DOM element: |
Beta Was this translation helpful? Give feedback.
0 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.
-
Check that this is really a bug
Reproduction link
https://jsfiddle.net/5vLocsjb/
Bug description
Function addSlide addSlide function does not work properly because it adds plain text to the HTML instead of adding an HTML object. Has anyone found a solution to this problem that would allow the image to be inserted somewhere other than at the beginning or end of slider?
At first I thought it was an error in my template, but I made a clean instance of swiper and the result is exactly the same as the error.
https://jsfiddle.net/5vLocsjb/
Expected Behavior
Insert slide between slide no. 1 and no.2.
Actual Behavior
Insert clean text, not parsing as HTML
Swiper version
11.0.7
Platform/Target and Browser Versions
Chrome, Windows
Validations
Would you like to open a PR for this bug?
Beta Was this translation helpful? Give feedback.
All reactions