Skip to content

Commit

Permalink
Ajustando utilização do atributo step
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnaneJ committed May 10, 2022
1 parent f0a225a commit 8f8e383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stars.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{/if}
{/each}
</div>
<input class="slider" disabled={config.readOnly} type="range" min={config.range.min} max={config.range.max} step="0.001" bind:value={config.score}>
<input class="slider" disabled={config.readOnly} type="range" min={config.range.min} max={config.range.max} step="{config.range.step}" bind:value={config.score}>
</div>
{#if config.showScore}<span class="show-score" style="font-size: {config.starConfig.size/2}px;">({parseFloat((config.score/config.countStars)*100).toFixed(2)}%)</span>{/if}
</section>
Expand Down

0 comments on commit 8f8e383

Please sign in to comment.