I have two elements in the slider. I noticed that it actually creates 5 other slides. They have data-index varying from -1 to 3.
Rendering just one element does not have this issue. It only shows a single element in the DOM.
The component I am rendering is in position 1.
Is there any way to remove the clone slide elements in the DOM?
The problem I am having is that the slides at position -1 and 3 have a div with the same id.
Now when I do document.getElementById()
, I do not get the properties of the actual component in view.
`