dynamicweb / swiffy-slider

Super fast carousel and slider with touch for optimized websites running in modern browsers.
MIT License
238 stars 29 forks source link

Remove "template" tag from children of .slider-container and .slider-indicators making library compatible with AlpineJS #46

Open Teods opened 1 year ago

Teods commented 1 year ago

Is your feature request related to a problem? Please describe. I want the library to be compatible with AlpineJs and the Web HTML Element "template". AlpineJS use the "template" element for every actions, loop etc... and SwiffySlider take alld child element to display indicators and slide. See AlpineJS Templating usage : https://alpinejs.dev/essentials/templating#looping-elements

Describe the solution you'd like I already implemented the solution (PR in preparation) it simply consist in excluding the "template" from the children and let all other tags as is

PR https://github.com/dynamicweb/swiffy-slider/pull/47