From b9adb101b86571be2c2370a3e5475b7cd21e7cb4 Mon Sep 17 00:00:00 2001 From: Mateus Mamede Lage Date: Sat, 27 Jan 2024 08:41:58 -0500 Subject: [PATCH] fix(slider): dispatch `on:input` event Fixes #1643 --- COMPONENT_INDEX.md | 1 + docs/src/COMPONENT_API.json | 1 + src/Slider/Slider.svelte | 2 ++ tests/Slider.test.svelte | 3 +++ types/Slider/Slider.svelte.d.ts | 1 + 5 files changed, 8 insertions(+) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index c2d9a634a0..1fa30739a8 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -3533,6 +3533,7 @@ None. | Event name | Type | Detail | | :--------- | :--------- | :------------------ | | change | dispatched | number | +| input | dispatched | number | | click | forwarded | -- | | mouseover | forwarded | -- | | mouseenter | forwarded | -- | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 9270aadf57..f9058608b4 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -11361,6 +11361,7 @@ ], "events": [ { "type": "dispatched", "name": "change", "detail": "number" }, + { "type": "dispatched", "name": "input", "detail": "number" }, { "type": "forwarded", "name": "click", "element": "div" }, { "type": "forwarded", "name": "mouseover", "element": "div" }, { "type": "forwarded", "name": "mouseenter", "element": "div" }, diff --git a/src/Slider/Slider.svelte b/src/Slider/Slider.svelte index 321b9b4969..a2696921e3 100644 --- a/src/Slider/Slider.svelte +++ b/src/Slider/Slider.svelte @@ -1,6 +1,7 @@