Skip to content

Commit

Permalink
add input event to Slider component
Browse files Browse the repository at this point in the history
  • Loading branch information
mmamedel authored and Mateus Mamede Lage committed Jan 27, 2024
1 parent f1cafd4 commit 13fc203
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/src/COMPONENT_API.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
1 change: 1 addition & 0 deletions src/Slider/Slider.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
}
value = nextValue;
dispatch("input", value);
}
$: labelId = `label-${id}`;
Expand Down
1 change: 1 addition & 0 deletions types/Slider/Slider.svelte.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export default class Slider extends SvelteComponentTyped<
mouseenter: WindowEventMap["mouseenter"];
mouseleave: WindowEventMap["mouseleave"];
change: CustomEvent<any>;
input: CustomEvent<any>;
},
{ labelText: {} }
> {}

0 comments on commit 13fc203

Please sign in to comment.