beyonk-group / svelte-carousel

A super lightweight, super simple Carousel for Svelte 3
MIT License
213 stars 38 forks source link

Dots option not working #30

Closed CarloAntenucci closed 4 years ago

CarloAntenucci commented 4 years ago

I cannot deactivate the dots. I've installed the latest version of svelte-carousel:

npm list @beyonk/svelte-carousel
svelte-components
└── @beyonk/svelte-carousel@2.4.0 

But seems the markup is not up to date to what i can see in this repo. Here you are the component source in node_modules:

<div class="carousel">
    <button class="left" on:click={left}>
        <slot name="left-control"></slot>
    </button>
    <div class="slides" bind:this={siema}>
        <slot></slot>
    </div>
    <ul>
        {#each pips as pip, i}
        <li on:click={() => go(i)} class={currentIndex === i ? "active" : ""}></li>
        {/each}
    </ul>
    <button class="right" on:click={right}>
        <slot name="right-control"></slot>
    </button>
</div>

Can you check it?

antony commented 4 years ago

This was merged but not released - it has now been released in 2.5.0