Skip to content

Commit 096ac43

Browse files
authored
Update value on input
An html slider changes the value while sliding, I think it would be the more native way to habe the value proposed while moving the slider instead of on release.
1 parent 5af26c3 commit 096ac43

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
@@ -13,7 +13,7 @@
1313
data-step={step === 0 ? undefined : step}
1414
{tabindex}
1515
{...inputProps}
16-
on:MDCSlider:change={handleChange}
16+
on:MDCSlider:input={handleChange}
1717
{...exclude($$props, ['use', 'class', 'disabled', 'discrete', 'displayMarkers', 'min', 'max', 'step', 'value', 'tabindex'])}
1818
>
1919
<div class="mdc-slider__track-container">
@@ -123,4 +123,4 @@
123123
export function getId() {
124124
return inputProps && inputProps.id;
125125
}
126-
</script>
126+
</script>

0 commit comments

Comments
 (0)