From 839a0c57992c762bf9bf3a9bf3f47225d3c846e7 Mon Sep 17 00:00:00 2001 From: ethan-lp Date: Wed, 19 Jul 2023 14:37:09 +0100 Subject: [PATCH] Fix: included scale step in input slider jsx (fix #187) --- templates/slider.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/slider.jsx b/templates/slider.jsx index 27cd7b4..cdb4e31 100644 --- a/templates/slider.jsx +++ b/templates/slider.jsx @@ -19,6 +19,7 @@ export default function Slider (props) { _selectedItem, _scaleStart, _scaleEnd, + _scaleStep, _marginDir, onNumberSelected, getIndexFromValue, @@ -178,6 +179,7 @@ export default function Slider (props) { value={selectedValue} min={_scaleStart} max={_scaleEnd} + step={_scaleStep} aria-valuenow={selectedValue} aria-valuemin={_scaleStart} aria-valuemax={_scaleEnd}