Skip to content

Commit 2db1bd7

Browse files
authored
fix: update slider value in input, to match HTML range inputs
Merge pull request #68 from Amerlander/patch-1 Update `value` on input
2 parents f837016 + 096ac43 commit 2db1bd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/slider/Slider.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{...(step === 0 ? {} : {'data-step': step})}
1717
{tabindex}
1818
{...inputProps}
19-
on:MDCSlider:change={handleChange}
19+
on:MDCSlider:input={handleChange}
2020
{...exclude($$props, ['use', 'class', 'disabled', 'discrete', 'displayMarkers', 'min', 'max', 'step', 'value', 'tabindex'])}
2121
>
2222
<div class="mdc-slider__track-container">
@@ -126,4 +126,4 @@
126126
export function getId() {
127127
return inputProps && inputProps.id;
128128
}
129-
</script>
129+
</script>

0 commit comments

Comments
 (0)