diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index e7a5e2be59..0d0bf540c4 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -11358,7 +11358,8 @@ { "type": "forwarded", "name": "mouseover", "element": "div" }, { "type": "forwarded", "name": "mouseenter", "element": "div" }, { "type": "forwarded", "name": "mouseleave", "element": "div" }, - { "type": "dispatched", "name": "change" } + { "type": "dispatched", "name": "change" }, + { "type": "dispatched", "name": "input" } ], "typedefs": [], "rest_props": { "type": "Element", "name": "div" } diff --git a/src/Slider/Slider.svelte b/src/Slider/Slider.svelte index 33b55e4917..ed23825b32 100644 --- a/src/Slider/Slider.svelte +++ b/src/Slider/Slider.svelte @@ -105,6 +105,7 @@ } value = nextValue; + dispatch("input", value); } $: labelId = `label-${id}`; diff --git a/types/Slider/Slider.svelte.d.ts b/types/Slider/Slider.svelte.d.ts index 028409a6b8..9c526ecaf3 100644 --- a/types/Slider/Slider.svelte.d.ts +++ b/types/Slider/Slider.svelte.d.ts @@ -131,6 +131,7 @@ export default class Slider extends SvelteComponentTyped< mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; change: CustomEvent; + input: CustomEvent; }, { labelText: {} } > {}